Test the .length of your field.
if (your_input_txt.length == 0)
{
trace("It's empty");
}
or set it:
your_input_txt.text = "";
if (your_input_txt.text == "")
{
trace("It's empty");
}
Which ever you prefer.
Good luck,
John
John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169
On Feb 6, 2012, at 2:39 PM, Don Talcott wrote:
> I have a form with many fields. Four of the fields are not required, but if
> any one of the four has text entered, I would like to have a conditional if
> statement to tell the user to fill out the other three fields.
>
> I am struggling with how to check whether any type of character at all is
> entered into an input field. I know how to check if the field is empty, how
> do I check if the field contains anything?
>
> Thanks in advance for any help with this.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders