How To Create Button in Email Notification Using Email Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 11:09 PM
Hi There,
I have one Requirement on Email Notification,
When Request gets closed at that time Requestor will receive one closed Notification, AND that notification Should Contain one Survey to be filled by requestor,
For Survey URL i have written one Email Script and called that Email Script in Notification, and when Requestor Receive the Closed Notification in that Survey URL is Coming But the Button "Click here to take the survey", the button is not Coming.
Please find the below Email Script i have Written:
Can Somebody Please help me, how to get The Button(When Requestor Clicks on that button it should redirect to Portal, to take Survey).
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 11:29 PM
Hello @Community Alums
Modify the script :-
Added some single and double inverted commas.
template.print('<a style="'font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; background-color: #278efc; border: 1px solid #0368d4; display: inline-block; padding: 5px'" + href= "' + url + '">'Click here to take the survey '</a>' );
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 01:20 AM
Hello @Samaksh Wani ,
Thanks for your response.
When i change the code as per you mentioned, i'm getting an error in code, please find the below snap attached.
Please let me know, what changes i should do
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 07:35 AM
Hello @Community Alums
template.print('<a style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; background-color: #278efc; border: 1px solid #0368d4; display: inline-block; padding: 5px" + href= "' + url + '">'Click here to take the survey '</a>' );
