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 to copy the value of multiple fields and display it in one single field.

    Asked by EngPaired on August 06, 2015 at 01:17 PM

    Can I copy a value from a field and paste it back into itself with additional data?

    Here's what I'm trying to accomplish - I have a hidden text area field that I'm trying to populate with details from multiple questions above on the form so that I can display it on the thank you page. I want to take the text that is already in the field and just add to it based on new conditions.

    I tried this in a form, but it looks like the condition is evaluating more times than I expected, so it is duplicating the information multiple times.

     

    Here's my simple example - http://form.jotform.us/form/52174707722152

     

    If you select 1 and then 5 I want it to say on the thank you page "You selected 1 You selected 5"



    This is a re-post of a comment on How to Pass Field Value to Another Field?

    populate field conditional logic
  • Profile Image
    JotForm Support

    Answered by ashwin_d on August 06, 2015 at 02:31 PM

    Hello,

    I did check the form which you are trying to build. The way you are inserting the texts in the "comment to display" filed will not help you achieve your requirement. The condition you have added will always add a new text every time the condition is triggered. That means if you select option 1 and the select option 2, the comment field will display two different texts.

    Why don't you take advantage of our "Form Calculation" widget to achieve your requirement. You can add formula in the widget to read the selected value. Here are the steps you should follow:

    #1. Set the calculation values of the radio button questions.

    #2. Add "Form Calculation" widget in form.

    #3. Configure the widget to display the values as text.

    #4. Add the field name of the radio button question in the widget to read the value.

    Please check the screenshot below:

     

    Please take a look at the following cloned form and see if this works as expected:  http://form.jotformpro.com/form/52175575525965? Feel free to clone the form for a closer look. The following guide should help in form cloning:  https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

    Thank you!

     

  • Profile Image

    Answered by EngPaired on August 06, 2015 at 04:08 PM

    Just what I wanted to do. Thank you. 

    Now if only we could get the text to display on separate lines. 

  • Profile Image
    JotForm Support

    Answered by Mike on August 06, 2015 at 05:53 PM

    It is possible to use a Text Area to get the multiline output. You will need to use <br> line break html tag to display the text on separate lines.

    Please see the next animation.

    Thank you.

  • Profile Image

    Answered by EngPaired on August 07, 2015 at 11:07 AM

    Once again, just want I needed. Thank you. 

  • Profile Image
    JotForm Support

    Answered by Kiran on August 07, 2015 at 12:21 PM

    I believe the solution provided by our colleagues worked for you. If you need any further assistance, please let us know. We will be happy to help.

    Thank you!