How to auto submit the catalog form (create incident) when user click on URL

Naresh_5120
Tera Contributor

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://dev181595.service-now.com/sp?id=sc_cat_item&sys_id=cc31d2dec3bc96103ed63942b4013147&sysparm_...

the form should auto submit and create an incident instead of user clicks on submit button. 

 

Naresh_5120_0-1727957391557.png

 

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. 

 

Naresh_5120_1-1727957520285.png

 

 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Naresh_5120 

so when user clicks that link the variables on that item are auto populated and you want the form to be auto submitted?

if yes then that's possible

you can use the onLoad catalog client script to auto populate and submit via script

check this link and it has the solution

How to validate before onSubmit in Mobile/Service Portal 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Dear Ankur,

 

Yes, correct we want when user clicks on link the variables on items are auto populated. The auto population is working fine but only auto submission is not working.

@Naresh_5120 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Naresh_5120 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader