Make fields from other table read only on a form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2018 10:54 PM
I am on the rm_story form.
I have three fields here:
Product (Dictionary settings below)
Product owner:
Short description:
I use the following script to make all fields on the rm_story form read only in the on Load Client Script defined on the rm_story table.
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x], true);
But the above said 3 fields are not set to read only. I know it is because these 3 fields are derived from other tables.
How to set such fields read only too while I set all fields in the form to be read only on Load?
And how to add an exception? (like) if I want the field 'Product alone to be editable and also set the Focus on that field on loading the form.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2018 02:45 AM
Looks like all the fields you are trying to make read only are mandatory, make them non-mandatory through dictionary over ride and then try the client script . Mandatory fields cannot be made read-only.
Thanks,
Vignesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2018 04:24 AM
Dictionary override is not possible. Please refer to my previous comments.
