We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

MRVS

kali
Tera Contributor

Hi All,

I have created a variable set inside the catalog item and i want to run a catalog client script on the catalog item when the MRVS value is added by the end user.I have used the onsubmit catalog client script in the variable set but in the g_form.getValue('mrvs_name').I am not getting any value, is there any other way to do this?

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@kali 

when you grab MRVS variable set value it comes as JSON object

what you want to happen?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

yashkamde
Mega Sage

Hello @kali ,

 

MRVS values are stored in backend and accessed via scripts as in JSON formats,

so you will need to fetch and parse it..

 

var mrvsData = g_form.getValue('mrvs_variable');
var parsedData = JSON.parse(mrvsData);

 

If my response helped mark as helpful and accept the solution.