- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-22-2017 07:38 AM - edited 12-29-2017 12:19 PM
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
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!