Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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

Knight Rider
Mega Guru

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

bigbacon
Tera Guru

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.