- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 02:10 PM - edited ‎07-31-2024 02:20 PM
Hello,
Currently I have a MRSV field name "Travel location and duration" to collect information from the user. The MRSV has 4 field and one of them is single line text "Travel Location". I would like to make this field a multi select variable with dropdown of all the Canadian provinces names, when the user select "CANADA" as their travel destination in the "Country" field.
My initial thought is to create another field (Multi select) as ""Travel Location"" and Active==false. and whenever user select Canada, this field will be set as active==true and the existing field "Travel Location" (free text) will be set as active== false
May I have some direction and instructions on client script implementations for this idea?
Thanks in advance
Masud
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 03:56 PM
Are you aiming to hide the Canada Locations from the MRV grid view (your first screenshot)?
Are you implementing the UI Policy on the MRV? I am replicating something similar and it appears that it works. However, I cannot hide the "Canada locations", the Canada locations will show on the table (your first screenshot).  
In my example: category is where I will pick something from a list, then if I pick "Airfare", then I have to select from "Where" one of the entries.
Selecting Airfare, makes Where Mandatory
The grid view of the MRM
 
 

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 03:21 PM
I haven't worked on MRVs in awhile so I may be a bit rusty on this guidance: you could try a UI Policy with the Catalog Condition of if Country==Canada, then add the Policy Actions of Canada Locations list as Mandatory=True and Visible=true, you will also want to hide the other Travel Location (free text) Visible=False.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 03:37 PM
Thanks for your response,
I tried that, but the UI policy wont let me choose the MRSV as a condition.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 03:56 PM
Are you aiming to hide the Canada Locations from the MRV grid view (your first screenshot)?
Are you implementing the UI Policy on the MRV? I am replicating something similar and it appears that it works. However, I cannot hide the "Canada locations", the Canada locations will show on the table (your first screenshot).  
In my example: category is where I will pick something from a list, then if I pick "Airfare", then I have to select from "Where" one of the entries.
Selecting Airfare, makes Where Mandatory
The grid view of the MRM
 
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2024 09:56 AM
Hello Isela,
I am able to hide and show other fields using the UI policy. Created the UI policy only for variable set with the following logic,
- If country==canada, Travel Location Visibility==False
- If country != canada, Province's Visibility==False
I am accepting your solution, as it led me towards the solution.
Thanks