Field display only if content is there

Hello,

we have a situation where we are displaying information from forms with information such as telephone#, email, URL, etc. You can see an example here : http://www.dpsnc.net/welcome.nsf/employee%20Discounts!OpenView

some of the businesses don’t have (or haven’t provided us) with certain field info. and I am wanting to have those fields not display when there is no content there. How can I accomplish this?

TIA

Bruce Gilbert

DPS

Subject: field display only if content is there

it’s pretty straight forward as follows:

assign a hide when formula to each paragraph / cell:

@if(fieldname=“” & !@isdocbeingedited;1;0)

this will hide the line only if fieldname is empty and the document is read (wouldn’t be any good hiding it from you in editmode :wink: )

if you adjust the fieldname appropriately that should do the trick.

  • Florian

Subject: RE: field display only if content is there

this seems to work, thanks!

Subject: field display only if content is there

Hide the statis text if there is no value in the field? Wouldn’t this work?

Subject: field display only if content is there

a hide when formula like@if(fieldname=“” & !@isdocbeingedited;1;0)

should hide each line if ‘fieldname’ is empty and the document is in read mode (would not be a good idea to hide the lines in edit mode).

just assign that hide when formula to all text paragraphs (change the fieldname appropriately) - and that’s it.

  • Florian

Subject: field display only if content is there

Bruce,

If I understand you correctly you just want to hide the fields (and probably the field labels) when the field is blank. Is that correct? If so its fairly simple. You just want to put in hide when formulas for the fields. For example: the field named fax i would assume is a text field:

  1. double click on the field

  2. go to the paragraph hide when tab (second from the last tab for me)

  3. on the bottom there is a “Hide paragraph is formula is true” checkbox. Check that and then in the box a formula for if that field is blank. (I dont know what the formula would be exactly)

you could do this for every field and also for every label.

Another option would be on the onload event of the page possibly.

I’m sure there are other posts about this on here. Did you try searching? Try searching for “hide when”

Hope that helps a little

Julie