cancel
Showing results for 
Search instead for 
Did you mean: 

Field to be checked blank or not

Former Member
0 Kudos

Hi,

I am fed up with this logic. I don't know what is wrong in my code.

I have one field and have to check the whether field is empty is not. If empty I have to hide else visible.

I wrote this logic in Initialize event (Javascript).

Field

if(Field.rawValue <>" "){

Field.presence = "visible";

}

Thanks in Advance

GJ

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi GJ,

If you are wrtitng the script in initialize method of the same field then write following:


if(this.rawValue == "" || this.rawValue == null)
{
  this.presence = "hidden";
}

if you are not writing the script in the same field then refer the whole address of the field instead of "this"

Regards,

Ravi

Answers (0)