How to show blank field using condition logic

  • CashAngelsInc
    Asked on July 3, 2016 at 1:31 PM

    Hello, how do I create a condition where if a certain drop down answer is selected, a blank form field appears?  For example, the question is do you own or rent.  So when "own" is selected, a blank text box should appear which says, how much do you pay for rent?  When the answer is submitted to me, it should say whether rent or own was selected and also the amount.  Is that possible to do?

  • liyam
    Replied on July 3, 2016 at 2:02 PM

    Hello CashAngelsInc,

    Yes, it is possible to do what you have in mind for your for. You can add a show/hide field condition in reference to the selected dropdown value on your form. 

    For further understanding of the usage of the show/hide field condition, you can refer to this user guide: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    It would also be great if you can share with us the specific form you are working on so we can look into it further and provide you a more detailed step by step procedure.

    Feel free to get back to us if you have questions or in need of assistance.

    Thanks.

  • CashAngelsInc
    Replied on July 3, 2016 at 6:03 PM

    Thank you for the explanation but I am still confused.  When I do the above and "DO" = Show, the "Field" options only include the existing form fields that the form has.  How can I get the Field to show a brand new field?

  • jonathan
    Replied on July 3, 2016 at 7:40 PM

    How can I get the Field to show a brand new field?

    The  field must be existing on the form so you can use the Condtion tool to create your condition rules.

    You can test this demo form https://form.jotformpro.com/form/41681694393970 also to have a better understanding on how it works.

    Were you perhaps wanted to create a field programmatically on the form? You can't do that using the Form Builder only.

    Please provde us more details on what you wanted to achieve. Perhaps we can figure out a workaround solution to your requirement once we have a better understanding of it.

    Thanks.

  • CashAngelsInc
    Replied on July 4, 2016 at 11:44 AM

    To clarify, here's an example:

    The question asks "Do you own or rent".  The person either selects "own" or "rent".  If they select "own", the next question should be "what is your mortgage payment.  If they select "rent", the next question should be "what is your "rent payment".

    Can this be done?

    Thank you.

  • Kevin Support Team Lead
    Replied on July 4, 2016 at 12:08 PM

    Yes, this will be done by using conditions as stated above by Jonathan, here is the guide Smart-Forms-Using-Conditional-Logic

    Here is also a guide to achieve exactly what you're looking for: How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    I've also made a sample form to show you how it works, first add the needed fields to your form, I have added the field as per your example: 

    How to show blank field using condition logic Image 1 Screenshot 30

    Then you need to add the conditions, in your example you will need 2 conditions, here is a screenshot about it, more details about this in the guides given above: 

    How to show blank field using condition logic Image 2 Screenshot 41

    You can also see how the form works on this link: https://form.jotform.com/61854435356966

    Feel free to clone it and check conditions, here is a guide that will help you to clone my form: How-to-clone-an-existing-form-from-a-URL

    Do let us know if you still have questions, we will be glad to help. 

  • CashAngelsInc
    Replied on July 4, 2016 at 3:07 PM

    I am sorry, I cannot figure it out.  Please look at my form "Merchant Pre-Authorization Form".  The field is called “Business Location(s):" which is field #28.  I have it setup with a drop down where the person can either select “rented” or “mortgage”.  Regardless of which option they select, I would like a field to come up that says “Monthly Payment:”

  • Nik_C
    Replied on July 4, 2016 at 5:06 PM

    As my colleague suggested, you can use Conditional logic and set condition on your Business Location(s) field that will show your Monthly payment field, you can follow this guide:

    How to show blank field using condition logic Image 1 Screenshot 20

    I added Monthly payment drop-down field for this guide, you can check my form: https://form.jotform.com/61856796698987

    Feel free to clone it.

    Please let me know if you need further assistance.

    Thank you!

  • CashAngelsInc
    Replied on July 4, 2016 at 5:42 PM

    thank you :)