Dynamic Textboxes: Is it possible to show elements based on the number of fields?

  • lpolhamus
    Asked on June 11, 2020 at 6:35 PM

    I would also like these "Additional Students" to determine how many names appear in the Opt-Out section.  If one student is added to the "Additional Students", 2 student fields need to appear in the Opt-Out Section.  If 2 students are added to the "Additional Students", 3 fields need to appear in the Opt- Out Section, etc.

    I want the number of "Additional Students" to also determine how many signature fields show up.  

    Do I need to use a different Element for the "Additional Students" in order to do this?

  • Kevin Support Team Lead
    Replied on June 11, 2020 at 6:47 PM

    It's possible to get the number of added fields to the Dynamic Textboxes widget, this will allow you to use this number on conditions and then show the desired fields. Here are the steps:

    1. First configure the widget to return the number of fields:

    15919153882020 06 11 16h38 02 Screenshot 10

    2. Add a Form Calculation widget and include the Dynamic Textboxes widget:

    15919155012020 06 11 16h41 21 Screenshot 21

    15919155252020 06 11 16h41 35 Screenshot 32

    3. The widget will return the number of fields added and filled:

    15919155732020 06 11 16h37 40 Screenshot 43

    You may then set up conditions based on this number, so if you want to show three fields, you can set up the conditions based on the Form Calculation widget, this guide will help you to do so: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer 

    I hope this helps.