- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2022 03:17 AM
Hello,
I have catalog item which has multi row variable set, the requirement is when the environment variable on the catalog item is selected as "Staging" the variable on the multi row variable set need to auto populate the value. I have tried below code which is working on UI but not on Service portal
function onLoad() {
if(parent.g_form.getValue('environment') == 'Staging'){
g_form.setValue('subscription_term_months', '12');
g_form.setReadOnly('subscription_term_months', true);
g_form.setVisible('test_account', false);
}
}
Is there anything need to be done to the populate MRVS variable on service portal? please suggest.
Thanks,
Prudhvi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2022 05:35 AM
Solution in the below link worked and resolved the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2022 04:15 AM
Please confirm your UI type is ALL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2022 04:59 AM
Yes, UI Type is ALL and that's where I see the issue I am getting Javascript error on the portal when the script runs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2022 05:35 AM
Solution in the below link worked and resolved the issue.