Skip to main content
September 15, 2006
Question

How to trap for nothing

  • September 15, 2006
  • 3 replies
  • 207 views
Hi all-

I have a very simple text field (textInput component instance)

I'm trying to trap when a user doesn't enter anything in the field. In my function I've tried trapping for NULL, "NULL", undefined, etc. but can't seem to get a condition that works for my if statement:

ex: if (userTicket_txt.text =NULL){...};

My condition never yields true with what I've tried. I'm sure it's something simple but I'm still scratching my head.... anyone have any ideas?

Thanks in advance-

rich

This topic has been closed for replies.

3 replies

September 15, 2006
Thanks, this did the trick.

Rich

Participating Frequently
September 15, 2006
You could also try to trap for:

userTicket_txt.text.length == 0

Tim
September 15, 2006
try ...txt.text=""