Submitting form from Service Portal page

stryker129
Mega Guru

Hi guys,

I created a custom form (similar to system form) and I'd like to add records to the table through my form from Service Portal Page.

How can I do that?

In other words, submit button should do the same thing as a submit button on system form.

Thanks

1 ACCEPTED SOLUTION
3 REPLIES 3

philippe_norman
ServiceNow Employee
ServiceNow Employee

Hi Ivan,



The way you can get a form in a Service Portal is to create what is called a Record Producer. Record producers, as their name implies are used to create records in any table in the platform. It does require some work to build a record producer but it is very flexible and enables you to have a user-friendly form which map back to your table, with hints, help info, descriptions.



Once you have build your variables, which are basically the questions you are asking in your portal form you can use Catalog UI Policies to make your form interactive   for example to present or hide fields based on previous answers. Once the form is filled, your users just have to click on the Submit button, same as in a form.



To present the form in a portal, make sure to specify which catalog and category you want to insert your form in and the form will be accessible through search or by browsing the service catalog.



Regards,



Phil


Thanks for your input Phil.


Just to make sure I understand your answer:


I created a page with widget which consists of a form with submit button like this



So in order to submit this form to "Customer" table which I've created before I need to use Record Produces or UI Policies?


Why I can't use client script Glide Record and submit all the form value using it?



Thanks