I am looking for a way to programmatically set a field or control to be read only.
Please do not recommend disabling the field, as that is not the same thing.
All posts so far asking this questions are pointed to disabling the field, this is not what I am looking for.
In the example below, the disabled attatchment field does not allow the user to click and view the attatchements.
When the field for attatchments is set to read only, the user can still click to view the attatchments. (The desired result.)
Example of Read Only: (Attatchments)
Example of Disabled: (Attatchments)
Not what I want:
fd.field('Attachments').disabled = true;
What I want but does not work:
fd.field('Attachments').readOnly = true;

