How to create forms with pre-filled fields.

Garry Knight
Kilo Contributor

I am looking to create forms when I can easily click using the new UI interface down the left hand side, so for example when we receive a password reset the Service Desk can just click a button on the left and it will open a new incident with all the fields pre-filled with just the name outstanding.

This will save us a lot of time when raising first time fix calls that take 10 seconds to fix but a minute or so to raise the incident.

This is currently our blank incident field:

http://imgur.com/LMrAHg7

 

And if possible I would like to have a form which I can just add to the new UI so one click will open a new incident with these fields filled out (in this example for out most popular request, Password reset):

http://imgur.com/JMf7Q09

 

And if possible to also fill out the closure information like this:

http://imgur.com/kpN0lhX

 

 

Thank you in advance for any comments.

 

Garry

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Garry,



You can write the client script onload with hardcoded values on the form.


The other option is to have the template and apply it on form load.


» Advanced Templates



Please let me know if you have any questions.


Kindly mark this as answered if this answers your question.



Thanks,


Pradeep Sharma


View solution in original post

11 REPLIES 11

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Garry,



You can write the client script onload with hardcoded values on the form.


The other option is to have the template and apply it on form load.


» Advanced Templates



Please let me know if you have any questions.


Kindly mark this as answered if this answers your question.



Thanks,


Pradeep Sharma


ohhgr
Kilo Sage
Kilo Sage

Hi Garry,



You can also achieve it using the pre-filling with URI. More details here http://wiki.servicenow.com/index.php?title=Navigating_by_URL



Else, you can also use the display business rule for achieving this, if it's dynamic.



Thanks,


Mandar


darshanr
Kilo Guru

Hi Garry,



You can make use of Default Value in dictionary of Field which you need to be set when user clicks New Incident



Thanks,


Darshan


Subhajit1
Giga Guru

Hi Garry,


Try using Templates for auto populating Fields on your Form.



Thanks,


Subhajit