Multi-Row Variable Set: How to control or set values outside MVRS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2024 07:31 PM
Hi,
In my case, I have a variable set that contains one variable that should control the other variable outside the MRVS.
1. If user select Traveling Advance = "No",
2. The variables for "Air Ticket" and "Hotel Booking" should be optional, based on user selection on Traveling Advance = "No"
Is there any suggestion on how to make it work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 01:53 AM
Hi @Community Alums I've tried the approach that you suggested. However, its not working where I got this error after creating that client scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 02:01 AM
As mentioned earlier also, please write the client script on the catalog item not the variable set.
With this, you will have access to all the variables.
var value = g_form.getValue('traveling_advance');
if (value == "no"){
g_form.setMandatory('field_name', false)