Catalog item

Ram012
Tera Contributor

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.

 

 

 

 

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@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.

ShubhamGarg
Kilo Sage

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