Form to insert data to a new table from service portal (Widget)

itstk
Tera Contributor

I need to make a form that opens from a widget and allows me to record information to a "newtable" table. The form should show me some of the fields in the "newtable" table and with a button save the selected values from that form to the "newtable" table. All this from service portal.

Please help in giving me an idea or if you have any documentation to be able to work from there.

1 ACCEPTED SOLUTION

Yes Dynamically also it is possible with the help of "sn record picker directive"

here is the link which will help you.

https://serviceportal.io/downloads/snrecordpicker-example/

 

If somehow I helped you, then please mark my answer Correct and Helpful.

Thanks and Regards:
Siddhnath Pandey

View solution in original post

13 REPLIES 13

Yes it is possible with the help of static values. Like in below Image.

 

Hope this will help you. However I don't think dynamically it is possible to the fetch all values of a particular field like you said for duration.

But yes, I will try confirm it If I get something I will let you know. & please if you get something please let me know.

If my somehow I helped you, then please mark my answer Correct and Helpful.

Thanks and Regards:
Siddhnath Pandey

hi siddharth,

               i tried with above screenshot but i couldn't able to create the record.can you help to figure it out exact issue.

 

find_real_file.png

 find_real_file.png

Hello, @Siddhnath Pande thank you, your script is working for me but I am not able to insert the caller filed record in the incident table. please check my code once. if I am doing mistakes please guide me on this.]

Thank You.

Hi 

 

Please are you able to show the full HTML Template code as I am new to servicenow i'm not entirely sure what i need to include. Much appreciated.

 

TIA