Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Flex combo empty check validation ?

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using flex 3.0.

I am trying to check condition if the combo box value is not selected by the user at that time it is blank on load.
So ideally it should not allow to save the data.

But i have tried every option:



but in none of the case flow is going inside the if condition even the combo is not selected and it is blank.

Please suggest anyone have idea on this.

Regards,
Prabhat

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution:

checking length is better option:

if(CallServerNameId.selectedLabel.length == 1){

}

it is now working.

prabhat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic