- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 12:22 AM
Hi Team,
My Requirement is:
I have added 4 lines point-wise in acceptance Criteria like below.
But after submission , it's displaying as single line , Like below
Acceptance Criteria Variable type : Multi line Text
What could be the Issue , Please help me.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 12:47 AM - edited 03-28-2025 12:52 AM
Hello @JVINAY ,
If possible, just change the type of the "Acceptance Criteria" variable from Multi Line Text to HTML.
Else you would have to add a script like this to the Record Producer:
current.acceptance_criteria = producer.getValue('acceptance_criteria').replace(/\n/g, '<br>');
Note: not sure if the "accepance_criteria" in your post is just a typo. In my example I have spelled it as "acceptance_criteria".
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 12:50 AM
acceptance criteria is of type HTML in target table
Acceptance criteria in record producer is multi-line. what's the variable name for it?
try this
current.accepance_criteria= producer.type_of_request + "<br/>" + producer.accepance_criteria.replace(/(?:\r\n|\r|\n)/g, '<br/>');
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 12:47 AM - edited 03-28-2025 12:52 AM
Hello @JVINAY ,
If possible, just change the type of the "Acceptance Criteria" variable from Multi Line Text to HTML.
Else you would have to add a script like this to the Record Producer:
current.acceptance_criteria = producer.getValue('acceptance_criteria').replace(/\n/g, '<br>');
Note: not sure if the "accepance_criteria" in your post is just a typo. In my example I have spelled it as "acceptance_criteria".
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 01:40 AM
Hi @Robert H ,
Thank you for your Reply it's working.