Hi there, please i would like to add a predefined password to my default enfold contact form. So a user cannot submit the form if the password field does not contain an exact string. I thought of doing this in 2 ways:
1. Adding an input field whose validation is equal to an exact word
2. Replacing the captcha with a password field whose validation is an exact word.
Please can you provide me a function to achieve this.
Looking forward to your response.
Regards.
Hey adotopanuga,
Thank you for using Enfold.
You can use the “avf_sc_contact_form_elements” filter to alter the existing contact form fields or insert additional custom input fields. Usage example of that filter can be found in the following thread.
You may need to create additional script to validate the password field.
Best regards,
Ismael