how to add Pre-filled fields

karan15
Tera Contributor

need help in achieving something like this following , wherein some of the fields are pre filled e.g in description as per screen shot 

3 REPLIES 3

Utpal Dutta
Tera Guru

Hi Karan,

When do you want to fill description field? Is it on load of the form or on change of some field on the form?

 

You need to do this from Client script. g_form.setValue('field_name', 'value'); is used to fill the values on client side. But if you want to get values from server and then fill it on client side then you need g_form.getReference or you need to do a GlideAjax call for script include. 

 

Let me know what kind of help do you need. If this answer is enough then please mark my answer as Correct!

 

Thanks,

Utpal

Sandeep Rajput
Tera Patron
Tera Patron

i did try the template way and tried using this https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/form-administra...

 

But still it dosent show 😞