View Full Version : Bullet Points

September 22nd, 2011, 08:22 AM
I have a large text area that is intended to be a bulleted list. I want to set it up so that there is only one text area but when the users hits a hard return the next sentence automatically starts with a bullet. Is this even possible?

September 22nd, 2011, 09:28 AM
Sure. You'll need to know what the data looks like when passed to the template, but my guess is that hard returns will appear as break tags in which case you would write a simple rule to replace the tags with a tag plus a bullet character when composed and check the box to return tagged output.
return Field("TEXT ARA").replace(/<br>/g, "<br>");

September 23rd, 2011, 07:22 AM
This code doesn't work.

Dan Korn
September 23rd, 2011, 09:31 AM
Try this instead:
return Field("YourFieldName").replace(/<br>/g, "<br>&bull;");

Although I'm not sure exactly what kind of markup gets placed in the field when "users hits a hard return." Where are these users doing the typing? Is this in a Web-to-Print system such as MarcomCentral?

September 23rd, 2011, 11:38 AM
That code didn't produce any bullets either. They will be typing in marcom central

Dan Korn
September 23rd, 2011, 12:07 PM
That code didn't produce any bullets either. They will be typing in marcom central
Okay, so we need to figure out exactly what is in the data that comes from MarcomCentral, so that we know what needs to be replaced. Can you add a rule which outputs the raw field value, by returning it with the "Treat returned strings as tagged text" box UNchecked, and output that? Or, if you can access the composition log (.msg) file, you can use call the Print function in a rule with the field value to write it there. Getting a hold of the actual tagged markup input data file would be best.

September 23rd, 2011, 12:21 PM
It is <p> I replaced it and it worked. You tha man