creating a Button for the Approval or Reject on email script notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 07:27 AM
I am creating an email script to approve or reject an RITM request.
this is my script but it doesnt seem to work, any help will be appricated
template.print('<p style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">');
template.print('<button onclick="location.href=\'mailto:mailto.approval\';" style="display: inline-block; padding: 10px 20px; background-color: #4CAF50; color: white; text-decoration: none; border-radius: 4px; font-size: 16px; margin-top: 10px; border: none; cursor: pointer;">Approve</button>');
template.print('<button onclick="location.href=\'mailto:mailto.rejection\';" style="display: inline-block; padding: 10px 20px; background-color: #FF0000; color: white; text-decoration: none; border-radius: 4px; font-size: 16px; margin-top: 10px; margin-left: 10px; border: none; cursor: pointer;">Reject</button>');
template.print('</p>');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 08:26 AM
HI @Peter Williams ,
I trust you are doing great.
I'll provide you with a revised script that should help you achieve your goal.
template.print('<p style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">');
template.print('<a href="mailto:mailto.approval" style="display: inline-block; padding: 10px 20px; background-color: #4CAF50; color: white; text-decoration: none; border-radius: 4px; font-size: 16px; margin-top: 10px; border: none; cursor: pointer;">Approve</a>');
template.print('<a href="mailto:mailto.rejection" style="display: inline-block; padding: 10px 20px; background-color: #FF0000; color: white; text-decoration: none; border-radius: 4px; font-size: 16px; margin-top: 10px; margin-left: 10px; border: none; cursor: pointer;">Reject</a>');
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 08:33 AM
i tried it and now getting this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 12:57 PM
do you have any other suggestions i can do