PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditional show based on sum two fields

  1. I'm trying to get a section to show/hide based on the sum of two other fields. I have one drop down for "number of adults" and another for "number of children." I need to then show other fields based on the sum of those two numbers. Is it possible to make this happen?

    Posted 11 years ago on Thursday December 13, 2012 | Permalink
  2. Can you post in English what the scenarios would look like, all the possible combinations of number of children and number of adults? Do you have the form online now without the conditional logic part?

    Posted 11 years ago on Thursday December 13, 2012 | Permalink
  3. I'll try. This form is related to attending an event. For each person that is coming, we need to gather attendee info for name, age and birthday. I have an attendee section with name, age and bday for up to 6 attendees hidden in the form. So, if the user selected 2 adults and 1 child, the first three attendee sections appear. If a user selected 1 adult and 3 children, the first four attendee sections appear. The number of attendee sections that show should be equal to the number of adults plus children selected.

    Posted 11 years ago on Thursday December 13, 2012 | Permalink
  4. I don't know of a way to combine fields and use the total for the number of fields to be shown conditionally. You could conditionally show fields for adults based on the number of adults in the drop down, and separately show fields for the number of children based on the number in the other drop down. But I don't know how to show some number of fields based on the total of those two.

    Posted 11 years ago on Thursday December 13, 2012 | Permalink