on 04-02-2010 5:11 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.