- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2024 11:00 PM
Hi,
we have 3 choice fields in a catalog item.
if we select value "X" in field 1, then field 2 should visible and if we select value "Y" in field 2, field 3 should visible. for this I have created a UI policy and its working fine.
Now, when I am changing the value of Field 1, Field 2 is not visible but Field 3 is still visible.
How can I fix this issue?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2024 11:47 PM
For example,
In the below example,
On selection of Country, display state,
On selection of state, display city.
Now, when I change the country, state field is removed but city if field not.
To overcome this, In the second UI Policy, add one more condition. Instead of On selection of State,
On selection of Country and State, city is visible.
Hope this helps.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 03:16 AM
Hello @Puneet4418 ,
Considering three fields to be Country, State & City with following conditions
- If country is India then only state field will be visible
- If state is Maharashtra then only city field will be visible.
For this we need four Catalog UI Policies with Ui policy actions :
- Country is India && state is not Maharashtra -> city visible false
- Country is India && state is Maharashtra -> city visible true
- Country is India -> state visible true
- Country is Not India -> state visible false, city visible false
Please note that for all the UI policies reverse if false field should be unchecked.
Please refer the attachment for better understanding.
Catalog Ui Policy:
Catalog Ui policy action:
If my answer solves your issue, please mark it as Accepted ‌and Helpful‌
based on the impact.
Thank You
Juhi Poddar