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

    Conditions based on a button click

    Asked by lshad24 on January 07, 2014 at 04:27 PM

    Grouping form fields feature request

    I know it has been requested before but I want to chime in and reiterate that it would be extremely helpful to group items.  This will make using conditional statements much more efficient.  Any hope of having grouping functionality soon?

    items and form fields grouping conditional logic
  • Profile Image
    JotForm Support

    Answered by TitusN on January 07, 2014 at 05:42 PM

    Hello, 

    Thank you for that. 

    I will resubmit this feature request to our developers. 

    In the meantime, may I ask the kind of functionallity you want to achieve with grouping? (For instance, show/hide)

    We could attempt to work out a tailored solution for you. 

    Thanks. 

  • Profile Image
    JotForm Support

    Answered by TitusN on January 07, 2014 at 05:50 PM

    You may also consider showing/hiding grouped fields using this guide: http://www.jotform.com/help/196-How-to-Hide-or-Show-Multiple-Fields-at-Once-Based-On-a-Single-Conditional-Entry

    Please let us know if this helps. 

  • Profile Image

    Answered by lshad24 on January 08, 2014 at 10:15 AM

    This request is for my travel request form: (33426781191961)

    Under the heading travel, i want to initially display the only one row containing date, transportation mode, amount, mileage - this field is currently set to only display if user selects 'Own car').  I want subsequent rows to display only if a user has additional travel information to add.  These 'rows' are what I want to group so I can create a condition based on the completion of the whole row as a unit.

    The same is true for the additional costs section.  Display one row initially and if a user needs to add more info another row displays.  

    I would love to hear how you may be able to help me streamline this.  

  • Profile Image
    JotForm Support

    Answered by TitusN on January 08, 2014 at 10:28 AM

    Hello, 

    I will work on a solution for you and update this thread once I complete it, quite possibly before close of bussiness. 

    Thank you for your patience. 

  • Profile Image

    Answered by lshad24 on January 08, 2014 at 12:50 PM

    Outstanding, Thank you!  

  • Profile Image
    JotForm Support

    Answered by TitusN on January 08, 2014 at 05:07 PM

    Thank you for your patience. 

    Please take a look at this guide, it will show you how to group fields, then hiding/showing them using conditional rules. 

    As Promised, I worked on the travel field with a copy of your form which I cloned. It has a lengthier workaroud, but its in the same spirit as the guide above. :-) 

    Please take a look and advice: http://jotformpro.com/form/40076550209954?

    If you like it, you may clone it yourself and take a closer look at the conditional rules I inserted. 

    If they work out, you can replicate the same on the additional costs section. 

    Its based on conditional rules that work when all the fields in one row are filled: 

    IF Date Is Filled 

    AND IF Transportation Mode Is Filled 

    AND IF Amount Is Filled 

    then

    SHOW Additional Information: Date

    SHOW Transportation Mode

    SHOW Amount

    Does this help? Please let us know. 

  • Profile Image

    Answered by lshad24 on January 09, 2014 at 11:00 AM

    Thanks much for your assistance.  Although this is helpful, it isn't quite what I need.  I don't want an additional row to automatically appear unless it is needed.  I also don't want the option for an additional row to display unless the user fills out the items on one row (group) completely.  

    What I imagine is adding an 'add additional travel...' button that will then display another row.  I would also need to allow the user to delete the row if it isn't needed.

    On other forms I created in the past, I have added conditional rules much like you did here so I am very familiar with the approach.  But, I am hopeful that we can someday group items so that the resulting condition can be 'if 'group 1' is filled, then... or in this particular case, add a button "Add additional travel' and when button is clicked the row of grouped elements would display.  Then the conditional rule would read as, "If 'Add additional travel' equals to 'Yes', then display Group 2.

    This would be a much simpler, straightforward conditional rule.  I can think of numerous justifications for grouping and am encouraged that others feel the same. The JotForm engineers continue to impress me with their understanding of our needs and willingness to make improvements to the application.  Thanks for pursuing this need with them.

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on January 09, 2014 at 01:35 PM

    What I imagine is adding an 'add additional travel...' button that will then display another row.  I would also need to allow the user to delete the row if it isn't needed.

    This can be possible through one of our Widgets called Dynamic Fields

    Please it a try and to see if you find it useful

  • Profile Image

    Answered by pinoytech on January 09, 2014 at 01:41 PM

    Hi,

    Another workaround that I could suggest is by using one of our widget called Matrix Dynamique.

    You might like to take a look at this clone form: http://www.jotformpro.com/form/40085323513950

    Feel free to contact us again if you need further assistance.

  • Profile Image

    Answered by lshad24 on January 09, 2014 at 02:10 PM

    Jeanette, the Dynamic fields would likely work if when clicking the add button it would add a group of fields rather than a single field.  I do see how I can use this widget on another form though.  I believe my greatest problem is that I need to combine several fields into a single group.  Then the Dynamic Fields widget would be ideal if it would allow me to add the group rather than a single field.

     

    Pinoytech, I saw your cloned form and would need to see more specifially how it would work for my travel row.  When I click on add row, it put s row above, rather than below and there seems to be no visual cues for users to knwo what to do with the newly added row.  

  • Profile Image
    JotForm Support

    Answered by Mike_T on January 09, 2014 at 04:14 PM

    I have sent a feature request about the 'Add more' button that can work with conditional logic. I can not provide any ETA on this, but we will let you know if we receive any updates.

  • Profile Image
    JotForm Support

    Answered by TitusN on January 20, 2014 at 08:58 AM

    Hello,

    Apologies for the delayed response.

    As you requested on this thread, Please clone the following form as a workaround:

    http://jotformpro.com/form/40076550209954?

    Please let us know if this helps.