You have the .then() on “state”: ($w(’ #state ').value) and not on register(). You need to move the .then() to the correct location in the code.
You have the .then() on “state”: ($w(’ #state ').value) and not on register(). You need to move the .then() to the correct location in the code.