Add new line within "Calculate Field Value"

  • Profile Image
    tjlphd
    Asked on March 15, 2020 at 07:45 PM

    This question was answered on January 15th of 2019. My question is similar but instead of a lot of text, I have multiple fields with text values in them. The output is a rolling paragraph but I want to create new paragraphs for each field that is populated in the calculation. Please help.


    1584315896Screen Shot 2020-03-15 at 7.44


    this above did not work.

  • Profile Image
    gerardw
    Answered on March 15, 2020 at 10:47 PM

    Sorry, but that would work only with text fields. Could you let us know the form which you are working on and how you plan to implement the above requirement?

  • Profile Image
    tom
    Answered on March 16, 2020 at 09:01 AM
  • Profile Image
    gerardw
    Answered on March 16, 2020 at 10:43 AM

    Thank you for providing the form details.

    I cloned and tested your form. Unfortunately, line breaks and special characters are not supported on the calculation area along with the fields. You will need to add the fields directly into the calculation area as you have already done:

    15843698001603_18.png

  • Profile Image
    tjlphd
    Answered on March 16, 2020 at 10:49 AM

    Is there a way to create images of the text and include them in the final field?

  • Profile Image
    Vanessa_T
    Answered on March 16, 2020 at 12:05 PM

    Unfortunately, no, you cannot add an image in the calculated field.

    However, I am trying to understand your form in hopes that I may be able to find another method to achieve what you want.

    As per checking, you are filling out the textboxes thru conditions if they are not selected as one of the answers in 4.0 Which of these disease avoidance methods are you consistently practicing?.


    May I suggest that instead of using conditions, why not assign default values to them, then add a condition that if such option is not selected in the checkbox, then show the corresponding field.

    How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Then on your Form Settings, set up Clear Hidden Field Values to Clear on Being Hidden, so that any field that were hidden will not have a value when submitted.

    1584374694581.png

    I've cloned your form and simplified it to make a demo for you. You may clone it back if you find the need to check it further.

    How-to-Clone-an-Existing-Form-from-a-URL

    Demo Form: https://form.jotform.com/200754673301954

  • Profile Image
    ashwin_d
    Answered on March 16, 2020 at 01:18 PM

    Unfortunately it is not possible to frame a sentence like that with line breaks in "Form calculation" widget. 

    I would suggest you to please check our "Narrative Fields" and "Passage Test" widgets and see if that fits into your requirement. These widgets will allow you to add question with texts and fill in the blank options.

    Hope this helps.

    Do try it out and get back to us if you have any questions.


  • Profile Image
    tjlphd
    Answered on March 16, 2020 at 03:58 PM

    More help please.  I added a bunch of spaces with an occasional period.  Now,

    for some reason, hidden fields are showing up. This is my last step before going live so please help.

    https://hipaa.jotform.com/200744667259160


    1584388681Screen Shot 2020-03-16 at 3.54

    1584388699Screen Shot 2020-03-16 at 3.54


    1584388733Screen Shot 2020-03-16 at 3.53

  • Profile Image
    Vanessa_T
    Answered on March 16, 2020 at 04:43 PM

    I have moved your last post to a separate thread and will be responding to you there shortly:

    https://www.jotform.com/answers/2211555