Skip to content

Commit 97e1af8

Browse files
authored
Create reame.md
1 parent 2f3de3b commit 97e1af8

File tree

1 file changed

+5
-0
lines changed
  • Client-Side Components/Client Scripts/Dynamic script to make fields read only

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Dynamic script to make fields read only
2+
3+
It runs when the field value changes.On change client script
4+
If the new value equals '7', it retrieves all editable fields using g_form.getEditableFields().
5+
Then it loops through each field and sets it to read-only using g_form.setReadOnly().

0 commit comments

Comments
 (0)