Dropdown list selection question
Hello,
I have a dropdown list with values
-- (first value)
01 (second value)
02
03
And a textfield. This text field will have a string - 01 for example.
I want the user to not be able to select the value which is in the textfield, from the dropdown list. I've tried this code but it's not working as expected -I have to click multiple times there to work-- added it in the Mouse Down event for the dropdown list
if (this.getField("Dropdown").valueAsString==this.getField("Textfield").value)
{
app.alert("this value can't be selected",1);
this.getField("Dropdown").currentValueIndices=0;
}
Can you please give me an idea? Thank you.