Skip to content

Commit 14b8d00

Browse files
authored
Update script.js
1 parent 42a9e16 commit 14b8d00

File tree

1 file changed

+1
-1
lines changed
  • Client-Side Components/Client Scripts/Restrict Fields on Template

1 file changed

+1
-1
lines changed

Client-Side Components/Client Scripts/Restrict Fields on Template/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function onChange(control, oldValue, newValue, isLoading, isTemplate) {
88
return;
99
}
1010
if (g_form.getValue('table') == 'incident') { // table on which sys_template is being created.
11-
var fields = ['active', 'comments']; // array of fields to be restricted.
11+
var fields = ['active', 'comments']; // array of fields to be restricted while template creation.
1212
for (var i = 0; i < fields.length; i++) {
1313
if (newValue.indexOf(fields[i]) > -1) {
1414
alert("You Cannot Add " + fields[i]); // alert if user selects the restricted field.

0 commit comments

Comments
 (0)