This is all working well, however, when the user selects the correct value I no longer want the selectionlist. Is there a way to remove the selectionlist.
Scenario:
<wd:on-value-change>
<javascript>
// Use a component to find suppliers
if (suppliersLength == 1) {
event.source.value = element.getFirstChild().getAttribute("code");
// And remove any selection list that may have been set previously
} else if (suppliersLength > 1) {
supplier = new Array(supplierLength); // Fill array
event.source.setSelectionList(supplier, "value", "label");
} else {
// Serve up an error
}
</javascript>
</wd:on-value-changed>
Thanks Joe
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
