UI policy is not working in making the "assigned to" field on "problem" form to Mandatory. Could you plz help on this resolving this .

anil4005
Tera Contributor

UI policy is not working in making the "assigned to" field on "problem" form  to Mandatory. Could you plz help on this resolving this , Below is the ui policy Andalso i have increased to highest order for that ui polocy.

1 ACCEPTED SOLUTION

Hi,

There is a Data Policy OOB which is restricting this to happen.

navigate to the below link :

https://instance.service-now.com/nav_to.do?uri=sys_data_policy2.do?sys_id=9f1b086f875b13000e3dd61e36cb0beb

Replace "instance' with your instance name.

Select the New state value as well along with other state as shown below and you should be good here:

find_real_file.png

Result:

find_real_file.png

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

17 REPLIES 17

Musab Rasheed
Tera Sage
Tera Sage

Just check if Assigned to is getting mandatory or something from other UI policy .? If yes remove from there and yours will work, If Assigned to has to be mandatory all the time you can make it mandatory from field dictionary as well though it's not a best practice. lastly try writing simple client script in case UI policy doesn't work by any chance.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Thanks Rasheed,
tried with client script , it is not working.
It should be happened for only onload. Is ther any way to debug this

 

Check how many records are there here.?

 

https://instance_name/sys_ui_policy_action_list.do?sysparm_query=tableSTARTSWITHproblem%5EfieldSTARTSWITHassigned_to%5Etable%3Dproblem&sysparm_first_row=1&sysparm_view=

 

And show me client script please.?

Please hit like and mark my response as correct if that helps
Regards,
Musab

i have disabled all other which on "assigned to ", but it is not working 
below is the screenshot