combo.clearAll() clears but doesn't unselect

Hello,

I have three combos linked as follows:

comboCrafts.attachEvent(“onSelectionChange”, function(){
comboCrews.setComboText("");
comboCrews.clearAll();
var projectId = comboProjs.getActualValue();
var craftId = comboCrafts.getActualValue();

With this, when a combo is selected the value of the others linked, is cleared.

But if the user send the web page after the clearing, getSelectedValue() still returns the last selected value of the combos even though all seem to be empty, as if the last value was still selected.

Is there any means to effectively clear the combos, visually and actually?

Thanks in advance.

Javier

Hello,

try to call clearAll with a parameter:

comboCrews.clearAll(true);

Thanks for your answer but it doesn’t seem to work.

After changing the selection on the first combo, and call clearAll(true), getSelectedValue returns the last value selected on the other ones even though they show no value in the box.

Regards.

Javier

You may also call unSelectOption method:

comboCrews.unSelectOption()

Problem solved.

Thank you very much.

Javier