How to toggle variable sets in order guide via onload client script

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 01:45 PM
Hello All,
We are trying to toggle containers/variable sets using OnLoad client script on order guide.
Based on the community posts we have already used the below scripts and didn't work.
function onLoad() {
//Type appropriate comment here, and begin script below
// expandCollapseAllSets(false);
toggleVariableContainer('7527dba047ce9a107b53f7fb136d43c4');
toggleVariableContainer('476f98bc1bce1e103fc10d03604bcb4c'); // this is request variable
toggleVariableContainer('66b16bac4702da107b53f7fb136d43f2');
//We have tried with below line as well
toggleVariableSet('7527dba047ce9a107b53f7fb136d43c4');
We are receiving a javascript error on browser console.
Please let us know how to achieve this. thank you!
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 06:07 AM
I am having this same issue when running the form through the service portal. toggleVariableContainer is not a valid function but it most certainly is if you run the form outside the service portal front end.