How to set default value of a field in MRVS based on another field outside MRVS?

dianemiro
Kilo Sage

Hi Everyone,

I want to set the default value of Company field in MRVS based on Company field outside MRVS. Is this possible?

Thanks,
Diane

1 ACCEPTED SOLUTION

Phonsie Hevey1
Tera Expert

Have a look at ryanlitwiller reply on https://community.servicenow.com/community?id=community_question&sys_id=5d28d390db272300fb115583ca961920.

 

this.NOW.[myAttributteName] = g_form.getValue("myfield");

However this doesn't seem to work in the back end but only in the Service Portal from what I can see.

 

View solution in original post

8 REPLIES 8

Hello,

 

Did you figured out the solution for this requirement?  We have the same requirement to populate the mrvs field based on outside field.

 

Please let me know.

 

Thanks,

Achu

Scripts that are not included in a multi-row variable set cannot affect variables inside the multi-row variable set. Similarly, the scripts included in the multi-row variable set cannot affect the variables that are not included in the multi-row variable set.

Have a look at ryanlitwiller reply on https://community.servicenow.com/community?id=community_question&sys_id=5d28d390db272300fb115583ca961920.

this.NOW.[myAttributteName] = g_form.getValue("myfield");

 However this doesn't seem to work in the back end but only in the Service Portal from what I can see.

Phonsie Hevey1
Tera Expert

Have a look at ryanlitwiller reply on https://community.servicenow.com/community?id=community_question&sys_id=5d28d390db272300fb115583ca961920.

 

this.NOW.[myAttributteName] = g_form.getValue("myfield");

However this doesn't seem to work in the back end but only in the Service Portal from what I can see.