Jump to content

Bullet points to show up when previewing

Recommended Posts

I have the java code below:


return Field("Address 1")+' '+'•'+' '+Field("City State Zip 1")+' '+'•'+' '+Field("Phone 1");


Fields Address 1, City State Zip 1, and Phone 1 all exist and it's supposed to put a space then a bullet then another space between the three fields. When it previews, it actually put the text  •  in there instead of the actual characters.


What am I missing?

Link to comment
Share on other sites

Here's an example of one way it could be done:


var addr1 = Field("Address 1");
var addr2 = Field("Address 2");
var spacer = " • ";

if (addr1.length > 0)
addr1 += spacer;

if (addr2.length > 0)
addr2 += spacer;

return addr1 + addr2 + Field("City State Zip 1") + spacer + Field("Phone 1");


It checks the string length of the value for those fields. If there is more than 0 characters, it appends the spacer string.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...