variable set collapse in OrderGuide Choose Options

begam
Kilo Contributor

Hi I have a little   requirement like i have a variable set these same variable set i am using on both my items available in my choose options and Describe needs   in my order guide i need to make expandable mode in describe needs and should be collapsible in choose options

wrote a client script but with below code

function onLoad() {

    //Type appropriate comment here, and begin script below

  toggleVariableContainer('368c24726f50fa8076989df44b3ee408');//sys_id of container 1

but when i used these script my both choose options and describe needs are got collapsed mode   because same variable set i am using in both   but i need only collpased on choose options can any one help me

Can any one suggest from your end please .

7 REPLIES 7

prashantnagaral
Mega Guru

Hi Khaja,



Try this and check the 'Display title' box to TRUE on the the variable set.



expandCollapseAllSets(false);


toggleVariableSet('368c24726f50fa8076989df44b3ee408');



Hit like, Helpful or Correct depending on the impact of the response


Regards


Prashant


Hi thanks for your replay Actually the requirement is like in order guide the landing page i.e. like describe needs it should be expandable after filling the details in landing page when user enters to the choose options page the variable set which i used in describe needs also same i am mapping in the choose options so in choose options it should in collapse mode.


Hi Khaja,



Can you share the screenshot



Regards


Prashant


ok sure


describe needs.PNG



hi the first screen is of describe needs page when i used the above script


function onLoad() {


    //Type appropriate comment here, and begin script below


  toggleVariableContainer('368c24726f50fa8076989df44b3ee408');//sys_id of container 1



screen.PNG


iafter using these script on landing page it is collapsed but it should not collapse it should be expandable   only in



In the choose options it s looking fine



choose option.PNG






The thing here is only i need to   make expandable mode for describe needs. plzz suggest me on this