Skip to content

Commit c72b31e

Browse files
Create Change label of Field.js
1 parent 11d9b79 commit c72b31e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
2+
// Prevent execution when the form is loading...
3+
if (isLoading || newValue == oldValue) return;
4+
5+
// Update Description field label based on Priority
6+
if (newValue == '1') {
7+
g_form.setLabelOf('description', 'Describe the critical issue in detail');
8+
} else {
9+
g_form.setLabelOf('description', 'Description');
10+
}
11+
}

0 commit comments

Comments
 (0)