How to put a condition based on Request item name in client script for sc_task table ?

Deepika61
Tera Contributor

Hi All,

Actually i have a requirement that  i need to do make some fields mandatory and read  only on the catalog task form based on one field choice , so i need to do this only one particular catalog item only, so for that in client script i need to put a condition like if catalog item is this, then only those fields mandatory or read only

 

Please  help me to achieve this

 

Thanks

Deepika

5 REPLIES 5

Community Alums
Not applicable

Hello @Deepika61 ,

 

You need to create catalog UI policy for sc_task table for making fields Mandatory,Apply conditions as below

shraddhaDSawant_0-1677667207393.png

 

 

Inside condition you should dot walk the item name and paste your catalog item name in my case I have used Request access catalog item and choice field will be select option

So in my scenario if the catalog item is Request access(catalog item name) and the select option(Choice field) is Yes then make Assigned to field mandatory.

 

Result as follows : 

shraddhaDSawant_1-1677667252062.png

 

Thanks!