Mandatory field in variable set impacting UI policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 08:40 PM
I have a catalog item that contains several variables and two mandatory variable sets.
I have a UI Policy for the catalog item that hides these variable sets on the form unless option 2 condition is met on one of the variables.
If option 2 is selected on the variable and I submit the form it submits without issue. If option 1 is selected the variable sets do not display which is correct. However, when I try to submit the form it says Submitting but then it doesn’t go any further. It does not create the request. I am assuming this has something to do with the fact that the variable sets are mandatory because if I select option 1 and then populate the variable sets and then change the option back to option 2 the field then disappear as expected and I can submit the request.
UI Policy Details
Catalog condition is Variable is Option 2
Catalog UI Policy Actions are Read Only=Leave alone, Mandatory = True and Visible = True
I also tried changing the UI Policy Details to
Catalogue condition is Variable is Option 1
Catalog UI Policy Actions are Read Only = Leave Along, Mandatory = False and Visible is False
Didn’t make any difference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 08:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 10:11 PM
Will this not make the variable none mandatory for all other items? I still want this one to be mandatory on other catalogue items.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 09:45 PM
Hi,
You need not to create 2 different UI policies, as you created 1st UI policy which correct.
Catalog condition: Variable is Option 2
Catalog UI Policy Actions are Read Only=Leave alone, Mandatory = True and Visible = True
Type: onload & onchange
Reverse if false checkbox: true
After submit the request/order which error displays, can you share the screenshots.
Regards,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 10:10 PM