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

    How to make one of two fields required, but only one filled

    Asked by art_crate on June 21, 2016 at 12:46 AM

    Hello,

    I need to be sure that a customer chooses either a set price or puts in a custom price. How do I make it required that one of them is filled before clicking next.

    *** Also if someone clicks a set amount (ex: $200) but then tries to put in a custom amount, how do make it so one one is entered.

    Page URL:
    https://form.jotform.com/61565853740966

    Screenshot
    Make how filled next hello then amount
  • Profile Image
    JotForm Support

    Answered by liyam on June 21, 2016 at 02:06 AM

    Hello,

    The best way to address your concern is:

    1) Add an 'Other' value in your widget and then
    2) Add a show/hide condition in your Custom Amount field that it will only show up when the Other value is selected.

    At the same time, both fields should be set as required. The hiding of the field will prevent the enforcement of its requirement, so the functionality of the required function will only happen once the field is revealed.

     

    By doing this method, it will make the user only choose an exact value based on the selections, or choose the Other and let them fill their preferred value. 

    Please let us know if you have questions.

    Thanks.

  • Profile Image

    Answered by art_crate on June 21, 2016 at 02:26 AM

    Thanks Iiyam that seemed to do the trick!