Set field readonly on Related List table

miro2
Mega Sage

Hi,

Could anyone help me with a solution to that issue?
In Change Request related list I created a new record on Problems table. 

find_real_file.png

On that record, I set Category to Software

find_real_file.png

Then Change Request state will be changed to Closed.

After changing CR state to Closed, I want to see Category field readonly.

 

 

I created BR (on display) and UI Policy but it doesn't work

find_real_file.png

 

UI Policy script

find_real_file.png

1 ACCEPTED SOLUTION

You want to make Problem's Category field as read only, then you can write UI Policy on Problem table.

After that try applying conditions in "when to apply" as"

Category -- is -- Software  AND

Parent.State -- is -- Closed

(If Parent.State doesn't work then check for "Change request" field and instead of Parent.state, check with Change request.State -- is -- Closed)

You can have UI action: Category as read only.

 

Give it a try & let me know.

View solution in original post

11 REPLIES 11

Hi Miro,

If this has resolved kindly mark this as correct and close the thread, So others will refer same in future.

Thanks,

Dhananjay.

You want to make Problem's Category field as read only, then you can write UI Policy on Problem table.

After that try applying conditions in "when to apply" as"

Category -- is -- Software  AND

Parent.State -- is -- Closed

(If Parent.State doesn't work then check for "Change request" field and instead of Parent.state, check with Change request.State -- is -- Closed)

You can have UI action: Category as read only.

 

Give it a try & let me know.

it doesn't work with 'Parent.State -- is -- Closed' but works fine with 'Change request.State -- is -- Closed)'

thanks

 

 

Priyanka Vasant
Tera Guru

Hi miro,

 

Find the below community thread which is similar to your requirement that might help you.

https://community.servicenow.com/community?id=community_question&sys_id=03319fe9dbdcdbc01dcaf3231f96...

Regards,

Priyanka

miro2
Mega Sage

one more question, why it doesn't work all together with g_scratchpad, BR and ui policy ??