- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2021 08:19 AM
Hi,
I want to make all the fields read only except worknotes on request table after closing a record. Please suggest me on this. Thank You!
Regards,
Ganesh
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2021 08:29 AM
Hi,
You can try this client script to mark all field readonly:
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
if(fields[x] != 'worknotes')
g_form.setReadOnly(fields[x], true);
}
Replace worknotes with actual field to exclude
Thank you,
Palani
Palani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2021 08:26 AM
You can do this a number of ways.
- Access Controls
- So this may be complicated but, /shrug, it is what it is.
- Data Policies
- This should be just like ui policies, except they are enforced at the server level.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2021 08:29 AM
Hi,
You can try this client script to mark all field readonly:
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
if(fields[x] != 'worknotes')
g_form.setReadOnly(fields[x], true);
}
Replace worknotes with actual field to exclude
Thank you,
Palani
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 08:54 AM
This is no longer an option in Vancouver (actually I think from Tokyo as well)