I want to add some conditional logic to my captcha component.

  • AENYtrav
    Asked on July 3, 2014 at 3:59 PM

    If the captcha is correct I want it to show the hidden fields again. How can I go about doing this?

  • jonathan
    Replied on July 3, 2014 at 4:47 PM

    Hi,

    You cannot use the Captcha field for that purpose because the captcha field is not included in the conditional module.

    If you take a look at it more, the Catpcha field itself can already be a condition rule (you cannot proceed if the captcha value is wrong)

    May I also inquire why would you rather want to use the Captcha field for your condition logic? Perhaps if you can describe to us more about the purpose we can provide you with more suggestion.

    Thanks!

  • AENYtrav
    Replied on July 7, 2014 at 10:38 AM

    Hi, the reason I want the captcha field to be conditional is because we want people that are short on business days to be prompted with a password before they can proceed with the late form. This way the company can keep track of which accounts consistently push late travel onto our sales team. I don't want the whole form to stop working, but if the date doesn't match the condition then I want a password prompt to continue. For example, When the password is correct the hidden fields become visible.

  • Carina
    Replied on July 7, 2014 at 12:24 PM

    I made some tests trying to use a random generator together with conditions in order to simulate the Captcha function of giving a different value each time with no success. Random Value Generator widget does not accept conditions. 

    I will forward a feature request to our developers so they can consider its implementation. 

    A workaround might be to create a text box field and then adding a condition that if a certain value is inserted the rest of the form will show.

    You can see here more details.

    In this case the "code" is always the same. Is this a solution for you?

    Thank you.

  • AENYtrav
    Replied on July 7, 2014 at 12:29 PM

    "A workaround might be to create a text box field and then adding a condition that if a certain value is inserted the rest of the form will show.

    You can see here more details.

    In this case the "code" is always the same. Is this a solution for you?"

     

    It is funny because I was thinking that too. However, I think we will just use the captcha as is and grant approval via email.

     

    Thank you!

  • David JotForm Support
    Replied on July 7, 2014 at 1:41 PM

    Hi,

    I am glad you were able to settle on a solution that worked for you.  As my colleague stated previously, there has been a feature request ticket submitted and we will post here if there are any updates.  Let us know if you have any other questions and we will be happy to assist you.

    Thank you for using Jotform!