Categories > OpenTBS with DOCX >

Suppressing empty variables

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: David
Date: 2012-12-11
Time: 17:17

Suppressing empty variables

I have several items that optionally appear in a .docx file. If the field is left blank by the user the code prints. To suppress it I am doing something like:
[onload;block=w:p;when [var.contact.address1]!=''] [onshow.contact.address1]


Is there a better way to keep a field from printing than what I am doing?
By: Skrol29
Date: 2012-12-12
Time: 01:48

Re: Suppressing empty variables

Hi,

Parameter magnet is what you're looking for:

[onshow.contact.address1;magnet=w:p]
By: David
Date: 2012-12-12
Time: 14:51

Re: Suppressing empty variables

Thank you.