- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 11:17 AM
bajarang..g_form.clearOptions('u_sub_2'); does not work on Internet Explorer .
Is there any thing else that will clearOptions from IE ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 11:19 AM
Hi Sach,
I'll also check this and get back to you on this
Regards,
Solutioner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 11:29 AM
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 !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 11:52 AM
can this be embedded with the above script you mentioned ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2014 01:31 PM
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.