I would like to make UI Policy Action work only for users with specific roles.

chanken
Tera Contributor

Hi Everyone,

I would like to make UI Policy Action work only for users with specific roles.

I have two roles (Role A, Role B).

I want to set mandatory filed when user having Role B assigns the assignto of   incident to a user who has RoleB.

However, when user having RoleA assigns the assignto of incident to a user who has RoleB, I do not want to set mandatory items.

Is it possible to realize by using a script?

Do you have better solutions?

thanks.

1 ACCEPTED SOLUTION

If you want the UI Policy to be applied for different view then you can just uncheck the Global check box on your UI Policy and then select the view for which you want the UI Policy to be applied.



find_real_file.png


View solution in original post

16 REPLIES 16

Hi harsh,



There are two UI policies that specify mandatory fields.


UI policy (B) is displayed by field watcher.  


But, it seems running UI policy (A).


Order is UI policy (A) is 100 and UI policy (B) is 150.


UI policy (A) checked "Reverse if false".


UI policy (B) no checked "Reverse if false".


I unchecked "Reverse if false" of UI policy (A).


It seems not running UI policy (A).


My solution is correct?


What case do I check "If reverse of false"?



thanks.


reverse if false: It says when UI policy condition will met then it will do that action that you want to perform.if you do some certain change on form then it will not revert back. it's just like IF() else().


eg:


based on category=network you made assigned to mandatory. in this case reverse if false has checked. then if you make the changes in category and select hardware then it will not make assigned to field mandatory.


2nd scenario reverse if false has unchecked : category = network , assigned to field will be mandatory and if you change in category and selected hardware it will still mandatory.



what exactly happening through UI Policy A and UI Policy B.   can you share the screenshot?