Jump to content

Need Java Script Rule to Suppress Bullet


markru

Recommended Posts

I have a letterhead template I am working that contains all contact information on one line with a "triangle" bullet to separate between the fields.

 

I need to suppress some of the bullets if the field next to it is blank.

 

Can anyone help? Thank you.

Link to comment
Share on other sites

Get into your "variable text editor" to be able to select the fields.

Highlight both the bullet and the variable field.

Click on "paragraph" button.

In the paragraph formatting box, check suppress if empty box and then select from the drop-down "containing empty variables."

 

The bullet should now disappear when that variable field is empty.

Link to comment
Share on other sites

Perhaps I'm missing a step because the entire line is suppressed, not just the field and bullet I have highlighted.

 

Yea, seeing the issue now. This only works for when you have the variables on seperate lines, like a Business Card.

 

example below shows the static text next to what could be variable.

phone:XXX.XXX.XXXX

fax:XXX.XXX.XXXX

cell:XXX.XXX.XXXX

Link to comment
Share on other sites

That's exactly right, which why I believe I will need a java script rule to accomplish this. Thanks!

 

SEE BELOW.

Phone XXX.XXX.XXX · Fax XXX.XXX.XXXX · Cell XXX.XXX.XXX

 

[size=4][color=Red]if (Field("fax") == "")
    return "";
else
    return" FAX " + Field("fax")  +  " ·";[/color][/size]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...