Skip to content

Commit ff4a5ef

Browse files
authored
Create dynamic_label_update.js
Dynamically updates the label of a catalog variable based on another variable’s value.
1 parent ffe114b commit ff4a5ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function onChange(control, oldValue, newValue, isLoading) {
2+
if (isLoading || newValue == '') {
3+
return;
4+
}
5+
6+
var asset = newValue + ' Asset Name';
7+
g_form.setLabelOf('asset_name', asset);
8+
}

0 commit comments

Comments
 (0)