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

    Conditionally required address fields requires address line 2 to be filled in.

    Asked by mbernhardt on July 08, 2014 at 05:40 PM

    My form seems to have a bug where the address field for "Participant #2" complains that it isn't completed properly unless the 2nd address line has something in it. This doesn't happen with Participant #1. What's going on?

    Page URL:
    http://www.trustingyouareloved.com/trusting-reg/

    address field required condition
  • Profile Image

    Answered by Jim_Rank on July 08, 2014 at 07:37 PM

    Hi,

    I have checked your form and couldn't reproduce any problem to fill-up the form. I also go ahead and checked your form conditions and settings, just I got that you used a condition in field named 'Participents#2'. See the following picture-

    Even the condition also working fine with the form.

    Please let me explain that for best performance try embed our iFrame embed to your website, check the following guide to know about it-

    https://www.jotform.com/help/148-Getting-the-Form-iFrame-Code

    I recommended you to clear your browser cache and check your operation once again.

    Please get back to us if the problem persists.

     

     

  • Profile Image

    Answered by mbernhardt on July 08, 2014 at 07:42 PM

    Let me clarify: If people register Participant #2 and leave "Street Address Line 2" blank, they get an error when they try to submit the form, stating that the Participant #2 address must be completed. Adding any text in that field solves the problem. But this doesn't happen on Participant #1, you can leave that field blank and it will submit correctly.

  • Profile Image
    JotForm Support

    Answered by jonathan on July 08, 2014 at 10:36 PM

    Hi,

    There is actually a condition logic in your form that makes the Full Address field for Participant #2  to become a *Required field once the Full Name is filled in.

     

     

    This is not a bug.

    Since the field(full address ) have become required, it needs to be answered to be able to successfully submit the form.

    You can just removed or disable the condition if that is not what you need.

    Hope this help. Inform us if you need further assistance.

    Thanks!

     

     

  • Profile Image

    Answered by mbernhardt on July 08, 2014 at 11:07 PM

    The address is required for Participant #1 but the 2nd line of the address is not required. So it should behave the same way if it is conditionally required. To me, that is a bug.

    Is there a way to make only parts of the Participant #2 address block required? Failing that, I will put some default text in there.

  • Profile Image
    JotForm Support

    Answered by jonathan on July 08, 2014 at 11:31 PM

    Hi,

    The address is required for Participant #1 but the 2nd line of the address is not required. 

    The condition rules you have setup on you form is NOT for this condition though.

     

    As you can see on the screenshot of the current condition rule in the form...

    It says that 

    IF Participant #2 is FILLED

    THEN Require Participant #2 Address.

     

    The name of the Full Address field for Participant #1 is just  Address

    You can edit the condition rule to point to it instead.

    This will then make the Participant #2 Address field non-required to submit the form successfully.

     

    Is there a way to make only parts of the Participant #2 address block required? 

    Since this is the Full Address field from Quick Tools, there is no means to apply the condition only to specific component of that field.

    The most you can do is add individual textboxes and compose them to mimic the Full address field. This way you can apply a condition logic to an individual text box (i.e. the 2nd part of address field.)

     

    Thanks.

     

     

  • Profile Image
    JotForm Support

    Answered by jonathan on July 08, 2014 at 11:33 PM

    Correction:

     

    Is there a way to make only parts of the Participant #2 address block required? 

    Since this is the Full Address field from Quick Tools, there is no means to apply the condition only to specific component of that field.

    The most you can do is add individual textboxes and compose them to mimic the Full address field. This way you can apply a condition logic to an individual text box (i.e. the 2nd part of address field.)

     

    Thanks.

  • Profile Image

    Answered by mbernhardt on July 09, 2014 at 10:09 AM

    I still think the way it works is incorrect.

    I pulled Address from Quicktools. Address is always required on my form. But the 2nd line in the Address block may remain blank (is NOT required). That's how you designed it, and that's how it should be.

    Participant #2 Address is just another Address block from Quick Tools, identical to the first one. I renamed it, that's all. If I make it conditionally required (because not everyone signs up a partner, so there may not be a participant #2) then it should behave the same way as Address. But it doesn't.

    BTW, Is there a way to add default text into a field? For example, put "not required" into the 2nd line of the Participant #2 address block...

  • Profile Image
    JotForm Support

    Answered by ashwin_d on July 09, 2014 at 12:02 PM

    Hello mbernhardt,

    I pulled Address from Quicktools. Address is always required on my form. But the 2nd line in the Address block may remain blank (is NOT required). That's how you designed it, and that's how it should be.

    If I understand your statement correctly, you mean to say that even if the address field is required, you can input all fields of the address question except the "Street Address Line 2" which you can left it blank. Yes you are right and that is how it should and that is how it is currently working.

    I did several test and it seems you are right. There is a bug with address field. If you make an address field required by clicking on the required button from toolbar, it works as expected. You can leave the "Street Address Line 2" field empty and it will not trigger any validation error.

    But if you make an address field required through a condition that means you add a condition to make your address field required, the "Street Address Line 2" cannot be left empty. Conditionally required address fields requires all fields to be filled in.

    I am reporting this to our back end team. We will get back to you as soon as this issue is fixed.

    Thank you!

  • Profile Image

    Answered by mbernhardt on July 09, 2014 at 12:13 PM

    Yes, that's exactly what I was trying to say. Thanks for "addressing" the problem!

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on July 09, 2014 at 02:29 PM

    If Street address line 2 is not necessary, then you could customize the address field for participant 2 , by unchecking the line.

    This only will work if ALL the participants 2 do not need this.

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on July 09, 2014 at 02:31 PM

    At any rate, thank you for reporting this little but, there is a ticket already opened. It seems making a field conditionally required does not work as expected, and it's different from making it required directly from the toolbar.

  • Profile Image

    Answered by mbernhardt on July 09, 2014 at 02:43 PM

    I thought of the hide line 2 idea, but I have no idea what people will need or not need. I compensated for now by adding a hover message over the address field that indicates the issue and to enter "n/a" if they don't need it.

  • Profile Image

    Answered by mbernhardt on July 10, 2014 at 11:28 AM

    It works! Thanks for fixing it so quickly.

  • Profile Image

    Answered by mbernhardt on July 10, 2014 at 11:31 AM

    Can you tell me if Kiran Kumar PVVS in Hyderabad is on your staff (or a user) somewhere? I don't if he is an actual registrant or if he was just testing our form.

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on July 10, 2014 at 11:50 AM

    Kiran is a candidate to join our technical staff. He is on a trial period. Is there anything wrong with him?

     

  • Profile Image

    Answered by mbernhardt on July 10, 2014 at 12:27 PM

    Absolutely not. I just didn't want to delete him if he had actually registered