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

    Is it possible to combine text fields value into a single one?

    Asked by mybackcracker on January 21, 2015 at 02:22 PM

    Was there an answer for snjrose? I would like to also know how to break up text in the Update a form field value section. This way I can have one ext area contain all of the info on my report and not have so many lines/pages



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

    form field section all and
  • Profile Image

    Answered by raul on January 21, 2015 at 04:01 PM

    I'm not sure if I understand your question correctly.

    You want to split the value entered in a text field and keep the separated values on a textarea or another field? Is that correct?

    If so, then unfortunately this is not possible to accomplish using the form builder.

    On this scenario, you'll need to use the full source code of your form and then use a custom script for example, JavaScript's function split to break the entered text and populate the field you want to use for this purpose.

    If I misunderstood your question, please let us know and if possible provide an example of what you're trying to accomplish to help us to better understand.

    Thank you.

  • Profile Image

    Answered by mybackcracker on January 21, 2015 at 04:23 PM

    Hello,
    No I am sorry. What I would like to do is to join answers from different questions together into one text box. This way when I print the PDF I do not have three pages because every question label is shown for every answered question.

    Say question 1 was " favorite flavor of ice cream" with check boxes, and question 2 "was what size" and was drop down and question three was " toppings" with checkboxes,

    My PDF would have three questions , then three answers. I would like to join all three answers into one text area...preferably with text in the middle...Example: ( customer name) likes (flavor) ice cream in a ( size) container with (toppings)

    I realize I can use a textbox with a default value for the static text in between the values and could even use conditions to keep them empty if a choice was not selected but when I attempt to create a text area for several fields to feed into so to have one answer, it lists on several lines and is jumbled.

    These are the answers as how they appear in my results:

    Complaint 1     Right neck

    Quality            sharp

                          tender

                          tingling

    Intensity         2

                          3

    Frequency       constant

     

    When I combine them into a text area using Update Form Value it comes out like this:

    Combined text area: Complaint Right neck Quality: sharp

                                   tender

                                   tingling Intensity: 2

     

                                   3 Frequency: constant

     

    I would like one small paragraph. Too much space is being taken up on my pdfs . I am making a medical form which will require a lot of questions but not always a lot of answers. 

    Thanks for your help

     

     

     

     

  • Profile Image

    Answered by raul on January 21, 2015 at 06:02 PM

    Thank you for providing more details.

    Please take a look at this demo form: http://form.jotformpro.com/form/50206514201942 you can use conditional logic to create a text area that would combine text values into a paragraph, however if you plan on using normal text fields it will only work if numeric values are entered in them.

    You can see what I mean if you try to enter a text in any of the textboxes on the demo form.

    If you use drop downs instead then you can combine the texts into a textarea.

    Another option could be using Narrative Fields in your form. You can see a demo form with narrative fields here: http://form.jotformpro.com/form/50031690182951

    Hope this helps.

    Let us know if you have further questions.
    Thanks.

  • Profile Image

    Answered by mybackcracker on January 21, 2015 at 06:48 PM

    Thanks...when you say normal text fields do you mean text box instead of text area? Do drop downs will populate a text paragraph but no widgets will?
    Thanks

  • Profile Image
    JotForm Support

    Answered by Charlie on January 21, 2015 at 09:01 PM

    I believe what my colleague means is that normal or plain text fields are those found in the "Form Tools", "Quick Tools" and "Survey Tools" section. I also like to point out that you need to switch the output of each form field either numeric or text. You can follow the screenshot below.

    1.

    2.

    3. You can check this demo form that I cloned from my colleague above and edited it: http://form.jotformpro.com/form/50207554184957

     

    For the widgets, we usually can't get the value of the widget and pass it in another form field, although I'm not sure what widget you are referring to but we can take a look at it. The reason is that the "Conditions" feature work with the default form field types but not in a complicated widget.

    I hope it helps.

    Thank you.