Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1131312

    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.

    #1131855

    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.

    // https://kriesi.at/support/topic/get-variable-of-the-url-and-attach-it-on-subject-of-content-form-mail/#post-1010866

    You may need to create additional script to validate the password field.

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.