We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

setValue variable MRVS in client Script Onchange ()

Rick Larson
Tera Contributor

Hello everyone, I have an MRVS and in it there is a selectbox variable, I would like to set the value according to a variable that is outside the variable set, Example

if ( g_form.getValue('variable_out_of_mrvs') == 1 ) {

g_form.setValue('variable_selectbox', '2') }

I know that MRVS is a JSON and that way it won't work, I would like to understand how I could do it.

1 REPLY 1

Muhammad Khan
Mega Sage