- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 10:24 AM
Hi,
In email scripts i am directly inheriting the short description of the form as email body, but the format in which short description was written is not the same in the preview of notifications and email received. please help me with this.
i have attached the code and both short description and its preview, please take a look at it.
code---
preview of the body notifications --
short description from the form----
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 10:29 AM
Hi Manoj ,
I have used below one which worked for me try to replace and see .
var shortDescription = current.short_description.replace(/\n/g, '<br>'); // Replace line breaks with <br>
var emailBody = "Hello,<br><br>";
emailBody += "Short Description: <strong>" + shortDescription + "</strong><br>";
email.setBody(emailBody);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 10:33 AM
And also whether these question are dynamic or static?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 10:43 AM
these questions are written in the description of the form, which is inherited to the email body.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 11:08 AM
Hi, all used the below code and it worked