Able to add more fields dynamically within the form

  • abcmississippi
    Asked on April 22, 2018 at 6:45 PM

    Hello, we're launching a campaign to update our database with the correct safety contacts within our member companies. I have built the form but instead of having them complete a different form for every person they want to add, I would love to have them be able to click a button that says "add employee" or similar at the bottom and the same set of fields pop up again and again for all the employees they want to add. Is that an option or do you have a better suggestion?

  • Elton Support Team Lead
    Replied on April 22, 2018 at 7:49 PM

    Use the configurable list widget so you can predefine set of fields that can be created dynamically within the form when the user clicks the add button.

    https://widgets.jotform.com/widget/configurable_list

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

  • abcmississippi
    Replied on April 23, 2018 at 7:11 AM

    Perfect, thank you! I built it out and it looks great. The only thing is how do I make it not required. Not everyone will have more than their primary contact to add. Here is my form:

    https://www.jotform.com/build/81116899255163 

  • Mike_G JotForm Support
    Replied on April 23, 2018 at 10:44 AM

    Please check the screenshot below to set the Configurable List widget as not required

    1524494244t10 36 33 Screenshot 10

    However, if you want to require fields individually, start the field name with an asterisk

    1524494423t10 39 29 Screenshot 21

    As a result:

    1524494544t10 42 01 Screenshot 32

    For more information on how you can set up the Configurable List widget, please refer to this guide — How-to-Set-Up-the-Configurable-List-Widget

  • abcmississippi
    Replied on April 23, 2018 at 12:06 PM

    Got it, thanks so much!