How to fetch field value on the form in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 06:21 AM
I want a fetch the value from the reference field that is on Catalog item form on the service portal in the client controller and want to use that value in the Server script.
Please suggest me the solution.
Thanks & Regards,
Surbhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 07:40 AM
You can use either GlideAjax or Get Reference.
In GlideAjax also don't use Synchronous call, it will not work in Service Portal.
Please refer below links for more information
GlideForm (g form) - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 09:21 AM
Hi Balaji,
I just want to fetch the value that I have changed on the form which is not saved in the table till now.
Thanks & Regards,
Surbhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 04:30 AM
Yes Surbhi,
If you didn't save also you will the by using GlideAjax or GetReference if the record exist in Table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 07:45 AM
Hi Surbhi,
Why you want to write your code on Service Portal for this. If its a variable on catalog item then you should be able to write logic using catalog client scripts as well.