In that case:
function ReplaceNull(val){
return (val=="null")?"":val;
}
...
f.addressLine2.value = ReplaceNull(qj.getField(i,"addressLine2"));
If it is the null value:
function ReplaceNull(val){
return (val==null)?"":val;
}
Pascal
> -----Original Message-----
> From: Kevin [mailto:[EMAIL PROTECTED]
> Sent: 26 July 2004 15:00
> To: CF-Talk
> Subject: RE: HELP. CF and _javascript_ question - Thanks
>
>
> I have one more question if you don't mind. On some one of the fields
it
> is
> possible to have a null value. (addressLine2) In those cases it places
> "null" into the field value. Is there a simple check I can place
inside
> the
> Populate function to replace the null with a blank space? Something
like:
>
>
>
> If (qj.getField(I,"addressLine2") = "") {
>
> f.addressLine2.value = " ";
>
> } else {
>
> f.addressLine2.value = qj.getField(i,"addressLine2");
>
> }
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

