RITM Form Field ReadOnly

Bishal Sharma1
Tera Contributor

Hi Team,

 

I want to make state field read only in RITM form. However the state field is coming from task table. How can I make task table field readonly in ritm form.

 

Please suggest.

11 REPLIES 11

Maik Skoddow
Tera Patron
Tera Patron

Hi

you have to define a so-called "Dictionary Override" for the state field on the sc_req_item table.

See https://docs.servicenow.com/bundle/vancouver-application-development/page/administer/data-dictionary...

Maik

Hi Malik,

 

I have few filters which should be satisfied before making the state field read-only.

Filter 1 : RITM is assigned to ABC group.

Filter 2 : logged in user belongs to ABC group.

 

If both above filters satisfies then keep the state field editable else it should be read only.

Aman Kumar S
Kilo Patron

Hi @Bishal Sharma1 

You can create a WRITE field ACL on the State field.

with condition:

ACL would be - sc_req_item.state

 

Assignment group - is - ABC group 

and mark the advanced checkbox as true and in the script you can write:

answer = gs.getUser().isMemberOf('sys_id_of_abc_group');

 

Best Regards
Aman Kumar

Hi Aman,

 

Do we have any other way to do this rather than ACL ?