Avatar

Level 10

Try the following code.

//Trim the field's rawValue to check for the blankness.

if(my_text_field_3.rawValue.replace(/^\s+|\s+$/g,"") == "")

     my_text_field_3.rawValue = "Blank";

if(my_text_field_3.rawValue == null)

     my_text_field_3.rawValue = "Null";

Thanks

Srini