how to add Pre-filled fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 03:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 03:53 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 04:25 AM
@karan15 You can use the Template https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/form-administra... feature to pre-populate data on the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2023 04:13 PM
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 😞