How to Make a Dot-Walked Field Read-Only in an Embedded Related List?

Siddhesh Jadhav
Kilo Sage

Hi All,

I have embedded a related list on the `ast_contract` form. In this related list, there is a field `model_number`, which is dot-walked from another table. I need to make this field read-only, but I am facing challenges:

- I tried using an onLoad Client Script, but I couldn't access the embedded related list and the `model_number` field.
- I attempted to use a UI Policy, but since it's an embedded related list, it's not available under UI Policy Related List Actions.

 

Questions:
1. How can I make the `model_number` field in the related list read-only?
2. Is there a way to control the field behavior through Client Scripts, UI Policies, or any other approach?

Any guidance would be appreciated. Thanks in advance!

11 REPLIES 11

@Siddhesh Jadhav 

Since it's an embedded list added on form, client script, UI policies won't work there.

There is no way to handle this as there are some limitations when it comes to embedded list.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Siddhesh Jadhav 

Thank you for marking my response as helpful.

You can try suggestions shared by other member but as per my knowledge this cannot be achieved.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader