Reference field table's field value to catalog item variable

Harish KM
Kilo Patron
Kilo Patron


Hello , I have a catalog item with a variable as a reference field which refers to a table. In this table I have a field called description. I want the values which is entered in description to populate in another variable in the catalog item. How will i achieve this?

Any help wud be great

Regards
Harish
1 ACCEPTED SOLUTION

gupta_vipul013
Mega Expert

Hi Harish,



As per Midhun, you have to use Catalog Client Script (Creating a Catalog Client Script - ServiceNow Wiki ) for the same.


Below is the code Snippet, I used to achieve the same:


reference.png




Thanks,


Vipul Gupta


View solution in original post

2 REPLIES 2

Midhun1
Giga Guru

Hi Harish,



Use onChange() client script and use glide ajax class.


GlideAjax - ServiceNow Wiki


gupta_vipul013
Mega Expert

Hi Harish,



As per Midhun, you have to use Catalog Client Script (Creating a Catalog Client Script - ServiceNow Wiki ) for the same.


Below is the code Snippet, I used to achieve the same:


reference.png




Thanks,


Vipul Gupta