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

  • Profile Image
    lpolhamus
    Asked on June 11, 2020 at 06: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?

  • Profile Image
    Kevin_G
    Answered on June 11, 2020 at 06: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.png

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

    15919155012020-06-11_16h41_21.png

    15919155252020-06-11_16h41_35.png

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

    15919155732020-06-11_16h37_40.png

    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.