- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:06 PM - edited 07-26-2023 01:07 PM
Hello,
I wrote a notification on the kb_feedback table. I want to get the comment from the, but its keeping the HTML tag. Any assistance would be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 06:40 AM
This is happening because comments are stored with html tags around it.
Instead of using ${comments} directly do following (example):
can create new email script (System Notification>email>Notification Email Script) to print comments and then use that script in your notification.
Example:
Mail script:
Name: writeComments
script:
Call script in notification:
${mail_script:writeComments}
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 06:30 AM
Good Morning,
Thank you for your reply. When I remove the tags and hit save, and open it back it re-applies the tags.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 07:08 AM
instead of ${comments}
call a mail script, (for example: ${mail_script:printComments}) and print the comments in mail script
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 06:40 AM
This is happening because comments are stored with html tags around it.
Instead of using ${comments} directly do following (example):
can create new email script (System Notification>email>Notification Email Script) to print comments and then use that script in your notification.
Example:
Mail script:
Name: writeComments
script:
Call script in notification:
${mail_script:writeComments}
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 07:28 AM
I will try this. Thank you so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 07:37 AM
Sure keep us posted and mark answer correct once you are satisfied😊
Regards,Sushant Malsure