- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2019 11:10 PM
Hello! Has anyone found a way to remove the "Additional Comments" text highlighted in the screenshot? I am using the ${current.comments} variable on my notification and the customer would like it removed but I haven't seen a way to remove it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2019 11:54 AM
Hi Pete,
Does the below work (untested) ? :
notes = notes.replace('(Additional Comments)','');
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2019 08:01 AM
Hi Pete,
This will do the job.
Create a email script as below and put it into your notification removing the existing ${current.comments} line:
(function runMailScript(current, template, email, email_action, event) {
var notes = current.comments.getJournalEntry(1);
notes = notes.replace('Additional Comments','');
template.print('<pre>'+notes+'</pre>');
})(current, template, email, email_action, event);
Regards
Paul
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2019 09:43 AM
Hi Paul,
This is great, thank you! I had to modify the script Comment to comment then it removed the Additional comments text however It still shows the parenthesis (see highlight in screenshot); Any idea on how to remove those parenthesis? I am in the progress of testing right now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2019 11:23 AM
Hi Paul,
I continued to test and I can't seem to get rid of the parenthesis; any thoughts on how to remove the characters? Any help is much appreciated. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2019 11:54 AM
Hi Pete,
Does the below work (untested) ? :
notes = notes.replace('(Additional Comments)','');
Regards
Paul