- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2022 09:08 AM
Hi Expert,
In email script , I am having the below code in reject button and I want this reason for reject should come in the next line. How can I achieve that? Please advise.
var rejButStr = '<a href="mailto:snow05@service-now.com?subject=re:' + gr.number + ' - reject&body=' + gr.number + ' - Reject' + ":Reason for Rejection:" + '"><img style="align: baseline;" title="Click this button to mark rejected" src="/rejectButton.pngx" alt="Rejected" width="142" height="41" align="baseline" /></a></div>';
Please refer the attached screenshot
Thanks
Srini
Solved! Go to Solution.
- Labels:
-
Notifications

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2022 09:24 AM
Try below.
var rejButStr = '<a href="mailto:snow05@service-now.com?subject=re:' + gr.number + ' - reject&body=' + gr.number + ' - Reject' + ":"+"%0D%0A"+"Reason for Rejection:" + '"><img style="align: baseline;" title="Click this button to mark rejected" src="/rejectButton.pngx" alt="Rejected" width="142" height="41" align="baseline" /></a></div>';

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2022 09:24 AM
Try below.
var rejButStr = '<a href="mailto:snow05@service-now.com?subject=re:' + gr.number + ' - reject&body=' + gr.number + ' - Reject' + ":"+"%0D%0A"+"Reason for Rejection:" + '"><img style="align: baseline;" title="Click this button to mark rejected" src="/rejectButton.pngx" alt="Rejected" width="142" height="41" align="baseline" /></a></div>';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2022 09:22 PM
Hi Jaspal,
your code is working fine.
Thanks
Srini