How to auto submit the catalog form (create incident) when user click on URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 11:50 PM
Dear Community,
I have created service catalog form through record producer on incident table to create incident with pre-populated information.
What i am trying to achieve is, when an end user load this form URL - https://instancename.service-now.com/sp?id=sc_cat_item&sys_id=cc31d2dec3bc96103ed63942b4013147&syspa...
the form should auto submit and create an incident instead of user clicks on submit button.
I have tried catalog client script, type -onload but it is not helping me. Can someone help me how can i get this outcome , am i missing something.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 11:52 PM
Firstly, I think the question is why are you doing this? What is the business need to do this? They don't want to click a button? Then why make them go to the link in the first place? Instead, you can give them a link that fires an event which will then create a record.
Secondly, I see your client script is UI Type = Desktop, change it to all.
Let me know if helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 12:02 AM - edited 10-10-2024 12:03 AM
Thank you Omkar for your response, The business is looking to provide an URL to end users that will prepopulate information such as the caller's name, urgency, and issue description. When the end user opens this URL, it should lead to a catalog form with the relevant information already filled in and submit the form to create an incident. I understand that this is a unique requirement.
Yes, I have adjusted the client script UI type to "All," but unfortunately, it is still not functioning as expected.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 12:06 AM
Hello Naresh,
I agree that they need to fill in some of the stuff, but I am saying, why redirect them to the portal unnecessarily? I am saying why don't you fire an event by clicking on some link and passing params in events?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 12:14 AM
Hi Omkar,
If it meets the requirement of creating an incident when user clicks on link ,we can go ahead with creating an event. I think this is good idea, could you help me, how can i achieve this, sorry I'm trying this first time