How to fetch field value on the form in Service Portal

inspiron
Kilo Contributor

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

6 REPLIES 6

balaji_charapal
Kilo Guru

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


GlideAjax - ServiceNow Wiki


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


Yes Surbhi,



If you didn't save also you will the by using GlideAjax or GetReference if the record exist in Table.


Gurpreet07
Mega Sage

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.