Question:
I’m looking to simply add an input field of type password as part of a Wix form. I’m using the Wix forms, and not custom input elements.
Product:
Wix Editor
What are you trying to achieve:
I’m looking to set an input field using Wix Forms as a password field. I can’t find a place to do so in Wix Forms, and I can’t seem to be able to access the field with the ID set by Wix Forms.
What have you already tried:
I tried accessing the element with code, but I can’t seem to access it:
const passwordField = $w("#set_instance_password");
console.log(passwordField);
This returns “const passwordField = $w(”#set_instance_password"); shows An element with the ID ‘#set_instance_password’ does not exist on this page. Select another element and view or edit its ID in the Properties & Events panel."