MRVS variables dependent on catalog item variable

hanaphouse
Giga Guru

How do I make Virtual Network dependent on the selected Azure Subscription in the catalog item if I have the configuration below?

We have a combination of variable and multi-row variable set.

  • Azure Subscription is a lookup select box using [cmdb_ci_azure_subscription] table
  • An multi-row variable set with the following variables:
    • Virtual Network is a lookup select box using [cmdb_ci_network] table
    • Subnet is a lookup select box using [cmdb_rel_ci] table

 

Here's how it looks like:

find_real_file.png

 

 

6 REPLIES 6

Zach Koch
Giga Sage
Giga Sage

Unfortunately you cannot use selections in the MRVS to make another field outside of the MRVS dependent.  Here is a link to the docs page so you can read about the limitations of MRVS, but I will also post a screenshot to the part that is relevant to your question.

MRVS Docs

find_real_file.png

If this solved your issue, please mark this correct and helpful, thanks!

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

How did you go about achieving this need and overcoming the limitations?

I was playing around with SessionStorage where on the form I will store using .setItem then on the MRVS, i will invoke .getItem. However, SessionStorage has its limitations too.

Any other solutions?

I have was not able to come up with a solution to this particular limitation, so I'm not able to offer any more advice.  In my use case, we were able to reformat the form a little bit and were able to achieve the desired outcome without relying on the MRVS choice.

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

Ankur Bawiskar
Tera Patron
Tera Patron

@hanaphouse 

there are some limitations accessing outside variable within MRVS

check these links for help

Multi-Row Variable Sets: How to get or set values for variables outside of the MRVS (Native UI or Se...

Accessing other form variables from inside multi-row variable pop-up

Multi Row Variable Set: communication with main form

Regards
Ankur

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