Why is Mandatory field in UI policy actions read-only in Scoped application?

Priya Shekar
Giga Guru

Any reason why Mandatory field in UI policy actions is read-only in Scoped applications..

1 ACCEPTED SOLUTION

Hi All,



Got solution for this issue.


1. We can make a field mandatory created within the scoped app thro client scripts, regardless the table created within the scope or not.


2. We can make a field mandatory created within the scoped app thro UI Policies, only when the table is also created within the scope.



Thanks,


Priya


View solution in original post

15 REPLIES 15

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Priya,



Can you please share the screenshot. Also in order to edit it make sure you are in the same scope to which the UI policy belongs.


Hi Pradeep,



Please find the screenshot below..i am in the same scope no issues in that, while creating a new record itself "Mandatory" field is read-only. Couldn't edit in List edit as well.




find_real_file.png


There is a client script available which restricts the mandatory field write access for Scoped App.


Is that a default one from Fuji release?


Because I checked in David Gatley's blog with the information below


Scoped Applications - Introduction



"You can create UI policies for tables and database views that are in the same scope as the UI policy and for other tables that have at least one field in the same scope as the UI policy. For tables that are in a different scope than the UI policy record, you can create UI policy actions only for fields in the same scope as the UI policy and you cannot make a field mandatory or define scripts."


Could it be that you have a script in place with g_formSetReadonly on the field?