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.
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.
form field create choices dynamic form
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:
Let us know if you have any further questions and we will be happy to help.