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

L1 Bithead

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

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

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 Live Community as a whole!

The Live Community thanks you for your participation!