Using Javascript to customize Response Page for Service-Now ticketing system

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Using Javascript to customize Response Page for Service-Now ticketing system

L1 Bithead

I'm trying to forward my form contents to Service-Now.  I do not want a page to popup requesting user to send the data, but need the PaloAlto response page to forward the data contents to Service-Now once the submit button is clicked.  If you have any script to share or have advice on setting this up, sharing would be appreciated.

 

<form id="paform" method='post' action='https://somecompany.service-now.com/api/incident'>
<p>If you believe this site has been inappropriately blocked, please provide an explanation in the comment section listed below and 'click' Submit. A Service-Now ticket will be created with the necessary detail for access review.</p>
<b>Comment: </b><br> <textarea cols="50" rows="4" name="comments"></textarea><br>
<input type='hidden' name='userID' value='<user/>'>
<input type='hidden' name='category' value='<category/>'>
<input type='submit' value='Submit'>
</p>
</form>

<script type="text/javascript">
var form = document.getElementById('paform')";
form.onsubmit = function(e) {
e.preventDefalt();
form.reset();
break;
}
</script>

 

Thank you,

 

--WLL

0 REPLIES 0
  • 1332 Views
  • 0 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!