How to dynamically collect the name based on the quantity input of payment question.

  • tnpc
    Asked on May 13, 2014 at 2:09 AM

    In this particular form I collect the main contact information at the top and then sell different levels of registrations. I need to collect the names they want on their badges. How can I make it dynamic so it pick up the names they fill in and offer them the quantities correctly.

    Example I may get 2 adult entries so I need to collect two badge names. Then have 1 child entry and only need to collect one name there.

    Is this doable?

    The other way I have seen it done is to have a drop downlist of the products then the badge name next to that. That means if they want two adults they would have to choose from two different drop down lists.

    Any help is appreciated.

    Dan

  • Ashwin JotForm Support
    Replied on May 13, 2014 at 9:24 AM

    Hello Dan,

    It is not possible to dynamically create textboxes to accept label input based on the input value of the quantity field of your product question. 

    I would suggest an alternative solution to you where you can add "Matrix Dynamique" or "Dynamic Fields" widget in your from and show/hide the widget based on the selection of your product. Please be noted that it won't be possible to track or restrict the number of rows in the matrix dynamique or dynamic fields widget.

    Please take a look at the following cloned form and see if this solution will meet your requirement:  http://form.jotformpro.com/form/41323570140946? When the product is selected, it will automatically display the textbox to input label and you can add on "Add more label" as well. Feel free to clone this form for a closer look. The following guide should help you in form cloning:  http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Do get back to us if you have any questions.

    Thank you!

  • tnpc
    Replied on May 20, 2014 at 4:47 PM

    Excuse the delay getting back to you.

    Thank you very much. Not perfect but useable for now. This is a short term form and not worth putting a lot of work into.

    I cloned it and am up and running.

    Thank you again.