cancel
Showing results for 
Search instead for 
Did you mean: 

Delete content when the text is 0.00

Former Member
0 Kudos

Hi forum

I want to delete the content of a field in a table when the text equal to 0.00

Example:

In text = 0.00

I want = ' ' (nothing).

Is this possible ? Maybe a patron ...

Thnks

Josue

Accepted Solutions (1)

Accepted Solutions (1)

harman_shahi
Contributor
0 Kudos

Try placing the following code in the "EXIT" event of your text-field. Remember to set the scripting language to Javascript



if (this.rawValue == "0.00"){
this.rawValue = "";
}

hope this helps,

harman

Former Member
0 Kudos

Thnks Arman...

I make it with FormCalc

This code is for rows of a table



  if ( FIELD[*] == "0.00" ) then
         FIELD[*] = ""
  endif

 

Answers (2)

Answers (2)

Former Member
0 Kudos
if (this.rawValue == "0.00"){
this.presence = "hidden";
}
Former Member
0 Kudos

buddy i have a alternative of this , i also encounter the same problem after much of trying i took the field as character ..

this sort my problem as if the field is declared as character then nothing wil come if the field is empty.

Ankesh