What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How can I create a dynamic form field from user choices?

    Asked by answerfirst on January 23, 2015 at 02:17 PM

    We have a field that we would like to hold various bits of text, depending on a users choices on the form. For example the form might have a checkbox tool called DEPT with Billing, Client, & Programming as options and also have a different checkbox tool with only one option called CHANGE ADDRESS. 

    If a user checks Billing and Change Address on the form, we want to create a field called output, where the words BILLING, CHANGE will be populated. 

    or if they check Client, Programming & Change Address then output would have: CLIENT, PROG, CHANGE

    or if they only check Change Address, then output would have: CHANGE

    These text bits will ultimately go into a email that will be creating a ticket in Zendesk and will be used to set options for that ticket. 

    The conditional called "Modify a form field" seems to have promise, but we cannot get it to append text to the Output field. It always overwrites Output with whatever was added to it last.

    Any suggestions?

    Page URL:
    http://www.jotform.co/form/40014007657849

    form field create choices dynamic form
  • Profile Image
    JotForm Support

    Answered by david on January 23, 2015 at 04:26 PM

    Hi,

    This is possible using the calculation widget and passing text values associated with your form fields along to it.  Here is how I setup my checkbox and my radio button:

    The text entered in the "Calculation Values" for both fields will but what is passed to the calculation field.

    Then I set up a calculation field to pass the text to, with the following calculation:

    Make sure under advanced options that you check "Add field to equation as text by default".  Here is my test form to show you how it works:

    http://form.jotformpro.com/form/50226793788973

    http://www.jotform.com/help/42-How-to-clone-an-existing-form-from-a-URL

    Let us know if you have any further questions and we will be happy to help.