- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 04:41 AM
Hi , I have a requirement to print the u_questionaire field of request item in a notifcation
I have wrtitten a email script in that iam using this
I am using this script :
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 09:45 PM
@avinashdubey103 can you please share screenshot of your record that is storing this value on form?
Is it storing data on separate lines in Questionnaire field?
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 05:06 AM
It is printing unidentified string
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 07:07 AM
Hey @avinashdubey103, adding to the Anil answer,
var u_questionnaire_value = current.getValue('u_questionnaire');
Add an HTML tag at the end of every line</br> in the template.print().
Then you can use it like this,
var html = "";
html += "<p>Question 1:"+variable_1+"</p><br/>";
html += "<p>Question 2:"+variable_2+"</p><br/>";
template.print(html)
It should solve your line break problem.
Kindly appreciate the efforts of community contributors by marking appropriate response as the correct solution and helpful, this may help other community users to follow the right solution in the future.
Thanks,
Hamza