You have enabled Corvid otherwise you would not have the code options on your page.
https://support.wix.com/en/article/getting-started-with-corvid-by-wix#step-2-enable-corvid-1
As for your code, the code is fine it is your submit button that is causing you the issue.
Make sure that it is not linked through the link settings for the element as it is linked through the code itself - as marked in green in pic below.
Also, make sure that the submit button has the onClick event handler function added to it in the properties panel and that the button id name is matched everywhere in your code - as marked in red in pic below.
As for your page name, you can call your page whatever you like, you just need to make sure that the page url is the same as what you have used in the wix location line of code.
https://support.wix.com/en/article/changing-your-page-url

