So you want to hide a field if it has no value, basically?
Hello, the fields I'm referring to sometimes have a sum, sometimes they don't. When they do I'd like to show them, but when they don't have anything in them they remain hidden. Only the fields which have a sum will show when I click the button. Is it possible? Know what I mean.
Not really... Why would you need to hide a field that is empty? But never mind. You can do it like this:
var f = this.getField("Item.1");
f.display = (f.valueAsString=="") ? display.hidden : display.visible;
Worked perfectly. Thank you. The reason I want to hide a field which is empty, well it's a little difficult to explain, but I have a table with a column with these fields. I have another field (a drop down) with percentage markups, i.e. 0%, 10%, 20%, etc. Some times the fields do a calculation. When that happens I have a button to show the column of fields. I don't want to show all the fields that calculate the percentage markup if they are empty, only the ones that have been populated are then visible. It makes for a neater form. Anyway, it now works the way I was hoping.