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

  • Profile Image
    Asked 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?

  • Profile Image
    Answered on January 23, 2015 at 04:26 PM


    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.