Skip to content

Commit 6eea2b3

Browse files
authored
Create Portal onLoad.js
1 parent bef28e6 commit 6eea2b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//Using this Catalog Client Script that Applies to the Catalog Item will enable g_form methods like setValue and clearValue which affect Catalog Item variables from a Catalog Client Script that applies to the multi-row variable set
2+
function onLoad() {
3+
if (this) {//we only need to do this for Service Portal
4+
//We need to make the g_form object for the parent item available from the MRVS window
5+
this.cat_g_form = g_form;
6+
}
7+
}

0 commit comments

Comments
 (0)