bajarang..g_form.clearOptions('u_sub_2'); does not work on Internet Explorer .



Is there any thing else that will clearOptions from IE ?


Hi Sach,



I'll also check this and get back to you on this



Regards,


Solutioner


Hi sach,



We created separate global function which can be used anywhere (UI Script). we had some extra things to take care as well.


Following is the workaround:



function removeOptions(selectbox,choiceValue)


{


      var i;


      for(i=selectbox.options.length-1;i>=0;i--)


      {


                if (selectbox.options[i].value == choiceValue) {


                selectbox.remove(i);


                break;


          }


      }


}


//using the function:


removeOptions(document.getElementById("mySelectObject"),choiceValue);



this works on all browsers



Hope it Helps !


can this be embedded with the above script you mentioned ?


mduluk
Giga Expert

I don't see a dependent in catalog variables like they have in Choice lists on forms.   What you might need to do is use the catalog UI policies.     Make a different sub-cause for each choice in the cause.   So if you had 5 causes, then there would be 5 different sub cause variables.     Then use the UI policies to hide the different sub causes until the correct cause is chosen.   This sounds messy, so hopefully someone else can come up with a better idea.


View solution in original post