What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Condition to set a field to "required"

    Asked by JPanthC4 on July 06, 2011 at 05:23 AM

    Hey guys!

     

    Is there any way I can set up a condition like

    "If field not empty, then next field requirement settings changed to YES"?

     

    I know that I can make required fields which I can hide and make them pop up if a condition is met, but that's what I actually don't want. So is this possible?

     

    Thank you!

  • Profile Image
    JotForm Support

    Answered by abajan on July 06, 2011 at 06:37 AM

    Hi JPanthC4

    Thanks for asking. Unfortunately, this is not currently possible with our form builder but I can envisage situations where the ability to set such a condition would prove useful. As such, I will submit a feature request ticket for this but I cannot give a lead time on if or when that functionality will be implemented.

    In the meantime, the only workaround I can think of would be to embed the full source of your form into your web page and edit the included JavaScript in such a way that the field in question would become required if the previous field is not empty. But I believe that would require some pretty good scripting skills and I'm no JavaScript guru! However, one of my colleagues may be able to better assist you with this.

    If there is anything else related to our product with which you need help, please feel free to post your query (in another thread if it's unrelated to this issue).

    Thanks.


    ~ Wayne

  • Profile Image

    Answered by JPanthC4 on July 06, 2011 at 06:45 AM

    Thank you for your fast reply abajan!

     

    Well, that would be high above my skills, since I'm creating a web page for my small company and we got no IT-section at all, so I made the page entirely "learning by doing" :)

     

    Looking forward for this feature to be implemented!

  • Profile Image
    JotForm Support

    Answered by abajan on July 06, 2011 at 06:49 AM

    Hang on! I just thought of an easier workaround: Simply make two identical fields and set one of them as required. Then set up conditions to show the required one when the prior field is not empty and to show the unrequired one when it is.

    That may be a bit confusing. So, I'll post a working example later today.

    Cheers.

  • Profile Image

    Answered by JPanthC4 on July 06, 2011 at 07:06 AM

    Thanks A LOT!

     

    I got it working on the page already, so there is no need for you to make an example. Still a feature I would appreciate ;)

     

    Please answer my other topics :D

  • Profile Image
    JotForm Support

    Answered by abajan on July 06, 2011 at 07:12 AM

    Cool! :)

    We're always glad when solutions we suggest work for our users.


    ~ Wayne

    P.S. I hope have a look at your other topics a little later. (Have to go out shortly.)