Survey Form on email
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 03:46 AM
Hi Community,
I wrote a email script to create the survey feedback form below is the code
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
template.print("<html>");
template.print("<label for='fname'>Tell us what you think about IT and what you want or need</label>");
template.print("<br>");
var ab = template.print("<input type='text' id='fname' value='fname'>");
template.print("<br>");
template.print("<br>");
template.print('<a href="mailto:dev86112@service-now.com?subject=Submitted&body=Name:'+ab+'">');
template.print("<button id='submit' type='submit' value='submit'>Submit</button>");
template.print("</a>");
template.print("</html>");
})(current, template, email, email_action, event);
Above attached snip is the form I created, after submitting the form ,the details in the form should redirect to outlook as shown below
Then I can perform Email inbound action, but the value retrieved as undefined.
Help out to retrieve the correct data from the form to the outlook
Thanks,
Anjali K
0 REPLIES 0