Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Finding value of a related MVRS field on an entry that is being changed as it is being changed

jcdunn
Kilo Explorer

Working with an MVRS field that has the important fields of:
"drive_letter"
"capacity_in_gb"

 

What I am doing is working on an onChange Catalog Client script associated with the MVRS so that when they go to change the "capacity_in_gb" value for drive letters T and Y it compares that against the "capacity_in_gb" of Drive X and will give them an error using showFieldMsg if the new value for the T or Y drive they are changing is greater than X.

 

The problem I am running into is I cannot figure out how to get what the "drive_letter" value is of the entry they are presently changing in the popup.  Here is screenshot, basically when they enter a new value in the capacity, I want it to grab the value in the drive letter box and if T or Y check the NewValue against the capacity of the X drive from the MRVS (which I have already gathered and put to a variable).

jcdunn_0-1763498189944.png

 

Thanks ahead of time for any assistance.

 



0 REPLIES 0