State changes to approval

pramn
Tera Guru

Hi Team , 

Need some help in scripting part , Requirement is Set below fields to read-only after approval is requested

cmdb_CI,cat,subcat,shortdescription,description

I tried with UI Policy , but looks like it doesn't work .

12 REPLIES 12

Vishnu kumar R
Tera Guru

Hi @pramn ,

 

You can make field read only by using UI policy based on state field, If state moved to "Requested" you can make required field as read only, Make sure to check "Reverse if false" if approval is rejected and state moved to some other value.

you can make read only by "On Load" client script as well by the following syntax.

 

g_form.setReadOnly('your_field_name', true);
 
 
Please mark this as helpful if it helped with your query : )
Thanks,
Vishnu

We   don't have options in UI Policy like changes to move to , we do have it in business rule .

Hello @pramn 

 

You can use "State is Requested", But it will not make fields readonly if the field is already made mandatory.

pramn_0-1731320758163.png

requested option is not available