Catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 04:07 AM
I have done with example catalog item but ui policy action is not working.
Example : should be visible "Contacrt Employee".
Type : Multiple choice
Question : Please select the contract
Choices :
* Contract Employee
* No Contract
Conditions: User select the below condition "Contract Employee " should be visible.
Action : is : Database
Usertype : is : 10
ID working with : is : Guest Manager
what is the best pratice like using Ui policy action or Catalog Client Script (Onchange).
Any idea help me above scenaior.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 04:09 AM
@Ram012 This can be easily achieved via a UI Policy. You just need to set the condition Please select the contract is Contract Employee. Add the UI Policy Action to make Date field visible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 04:16 AM
Hello @Ram012 ,
To add or remove or clear the choices basis on value of another field, it would be better to go ahead with catalog client script. This option will be scale-able enough to adapt multiple scenarios (add or remove option) if any need arises in future.
You can use addOption(), removeOption(), clearOption() to get the desired results.
If my response helps you in any way, kindly mark this as Accepted Solution/Helpful and help in closing this thread.
Regards,
Shubham