All fields within a Form Section
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2015 09:40 AM
Is there a way to get all the fields within a section using a client script?
I need to make all fields within two sections read-only onLoad, but not in a third section. I would like to use a script similar to this
function onCondition() {
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x],true);
}
}
since I have quite a few fields to set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2015 09:54 AM
I'm sorry beforehand because I don't know how to do it using perl.
But, are you only looking for Perl? I have snippets that can insert it using Python.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2018 06:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022 03:47 AM
Life Saver.. i have been searching for this for so long.. same field multi sections same form and client script was only executing only on 1st id
THANKSS!!😁