Servicenow Certified System Administrator CSA · Free Practice Question Medium
Question 30
What data can you access when you create a dynamic multi-row variable set (MRVS) form?
Select 2 Answers from the below options.
-
A
Other rows of this multi-row variable set
-
B
Variables from other active multi-row variable sets
-
C
Other variables outside of this multi-row variable set on the catalogue item form.
-
D
Variables from other catalogue item forms using this multi-row variable set
Reveal correct answers
Correct answers: A, C
Explanation
You can create a dynamic MRVS form by accessing all data in the catalogue item form that includes the following:
Other rows of that MRVS
Other variables outside of that MRVS on the catalogue item form
The g_service_catalog API enables you to access data in a multi-row variable set when a model is open.
This API is available in all environments, such as Service Portal, Now Platform, Workspace, and Now Mobile.
You cannot access the variables from the other multi-row variable sets or the other catalogue item forms using this multi-row variable set.
Code Example: Hiding the ipv6_address field on the MRVS if the address_type field on the catalogue item form is set to IPV4
- function onLoad() {
- if (g_service_catalog.parent.getValue("address_type") == "ipv4") {
- g_form.setValue("ipv4_address", "XX.XX.XX.XX");
- g_form.setVisible("ipv6_address", "false");
- }
- }
Learn more here!
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
