How to add multiple section of fields dynamically?

  • francinec1
    Asked on September 20, 2018 at 2:29 PM

    I have one last item I need help with.
    Can I have it loop back to enter more activities? In other words, I can add text to say “Need to enter more actives? If Yes, it opens that field up again for multiple selections.
    Or, can we make it so that they can select multiples in the drop down?
    If we allow multiples, I’d need date column per activity logged.
    But, I’m find with the first approach if that’s possible.
    So if yes, they loop back to enter (or we copy to next section) or make it so that they can select multiple from drop down.
    If we have multiples, I’d need a date entry for each activity logged.
    But, if we have to make it a table for multiples, just give me direction to add the logic for hours worked as we did here.
    Thanks,
    Francine

    I forgot to add the link to the form I Cloned: https://www.jotform.com/build/82622877412157

  • roneet
    Replied on September 20, 2018 at 2:30 PM

    With your Yes/No selection in your question "Do you want to enter more activities?" you may add a condition to show Multiple choice option and then if there are multiple selections then you may show date along with each selection.

    Feel free to clone my form:

    https://form.jotform.com/82625910784968

    1. I have added Multiple Choice elements and a date field.

           How to add multiple section of fields dynamically? Image 10

    2.  I have added conditions to show date for each of the selection made.

    How to add multiple section of fields dynamically? Image 21

    Refer to the screencast here:

    1537467904form Screenshot 32

    Hope this workaround helped you.

    Thanks

  • francinec1
    Replied on September 20, 2018 at 5:43 PM
    OK, maybe my question wasn’t clear.
    Under the “Activity Logged” and all the corresponding hours and conditions.
    Is there a way to “Group” those sections together (Activities Logged, Hours, Booth Area, Activities not listed” and then if the answer to the question “Need to enter more activities” = Yes, we route the user back to that section to enter more of the selected options until they finish entering?
    Or, would this be better in a table form with the actitivies/hours/area and then a column for date and then a checkbox to enter the multiples?
    I know I can loop them back from the thank you page if needed, but I’d rather loop them around before they submit so that for example they could show
    9/13/2018. Attended PTO meeting 1 hour
    09/17/2018. Donated Food Item 1 hour
    09/20/2018. Draw down committee chair 5 hours
    09/27/2018. Building Clean Up. 4 hours
    So all would show and then user can submit.
    Please advise.
    Thanks
    Francine
    ...
  • David JotForm Support Manager
    Replied on September 20, 2018 at 7:43 PM

    I would suggest you to use the Configurable List widget, so the user can dynamically add as many activities as he wants to: https://www.jotform.com/help/282-How-to-Set-Up-the-Configurable-List-Widget 

    Let us know if you need more help.

  • francinec1
    Replied on September 20, 2018 at 8:43 PM
    This doesn’t seem to allow for if then requirements in this document.
    Again this is from the activity. Hours worked would need to pre-fill based on the pre-set values. If not, they need to be entered.
    If activity = Draw Down Chair, German Fest Booth Support, or German Fest Chair, then we need to know the Area/Booth.
    We’d need a checkbox before Activity and we’d need date after hours worked.
    Is there a way to copy my drop downs and linked fields? That is not covered anywhere in this document.
    Thanks
    Francine
    ...
  • Elton Support Team Lead
    Replied on September 21, 2018 at 12:22 AM

    Config list allows you to create fields dynamically within the form depending on how many sections you require. If this isn't something you prefer, my first colleague's solution is the only other workaround.

    Just define all the fields in your form then show/hide them through condition based on the user's answer.

    To group the fields, you can use the section collapse, then to show them at once, just select the section collapse name in the condition.

    Demo: https://form.jotform.com/82630615579968