- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 07:53 AM
Hi All,
I have a requirement to print the value of the description in the notification body by removing the last line of the description
if description having below value
111
222
333
444
I want to print the below value in notification
111
222
333
Can anyone suggest me how we can trim the value to achieve the above requirement in mail script?
Thanks in advance
Regards,
Ganesh
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 08:13 AM
You can use below code in email script:
var desc = g_form.getValue("description");
var arr = desc.split('\n');
arr.pop()
alert(arr);
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 08:13 AM
You can use below code in email script:
var desc = g_form.getValue("description");
var arr = desc.split('\n');
arr.pop()
alert(arr);
Aman Kumar