How to do a password verification check?

Most websites when you sign up require you to verify your password when you’re typing it in by typing it into two inputs.

There is nothing in the GUI of the Wix editor that allows you to verify that these two inputs are the same before submitting the form.

What I want to do is hide the submit button until the user is finished entering their information including the password and checking that the two password inputs are the same before showing the button.

I tried doing this in the code by using an on-change event listener on the second password input which would then check the values of both password input fields and if they are the same then it would show the submit button however it doesn’t work.

I can set this button to have a default state of hidden in the GUI, which works however I am unable to have the button show after checking the password fields. For some reason it just will not show the button.

I verified that my statement is in fact working by logging to the console “passwords match” within an IF statement, and tried setting the button not to be hidden with the following statement:

$w(“#submitBtn”).hidden = false but this doesn’t actually change the hidden attribute of the button for some reason, despite the other code working. I confirmed the value is not changing by console logging the value.

On a side note, the included functionality of “Wix Members Area” is extremely limiting. Why does it use a singular database that is Read Only??

During testing, it’s likely that users are going to mess up their forms sometimes, creating uses without all the necessary data, yet there seems to be no way to clear users out of this database??