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

Onkar Pandav
Tera Guru

Hi,

Have you tried with dot walking in UI policy condition?

 

No, and I didn't see any fields on conditions to use dot walking to Problem table

Maybe is something I do wrong?

Hi Miro,

Have UI policy on Problem table and in condition select dot walking like.

first select

Show Related fields => Change request =>Change request fields => state is closed

 

then in ui policy action add action for that field for read-only

now it works 

thanks