Ch. 032 Supported Tags for Field Scripting

EDOCBUILDER > eDocBuilder Documentation Manual & Videos

Click here to review the chapter on Field Scripting if you are not yet familar with field scripting.

Attribute

Notes

<BR>

This tag is used to force a line break.
This tag does not accept any attributes.

Line 1<BR>Line 2
Line 1
Line 2 

<leader>

 

This tag is used to insert leader text that will make a line fill the width of a field.

Put the text that should be inserted until the width is filled between the <leader> and </leader> tags.
This tag does not accept any attributes.

Fruit salad<leader>.</leader>$1.99
Fruit Salad.............$1.99

 

<P> This tag is used to mark up paragraphs. Paragraphs are types of styleruns and so they accept the same attributes as stylerun tags. They also accept the following additional attributes:
align

The text alignment for the paragraph. If no value is specified it is assumed that the text should be left aligned.

You can specify left aligned text (eg align=left), right aligned text (eg align=right), centered text (eg align=center) or justified text (eg align=justify).

Example: <p align="justify">@TextFieldTwo@</p>

This script would both right and left justify the text contained in the TextFieldTwo.

break

The line breaking style for the paragraph. This attribute takes a comma delimited list of hints used to control how lines are broken when chaining from one text area to another.

You can specify that a paragraph should be kept with the next one by assigning the keepwithnext hint (eg break=keepwithnext). You can specify that there should be a break before a paragraph by specifying the breakbefore hint (eg break=breakbefore).

fixedwidth

You can specify a specific width for a block of text. For example, if you have three phone numbers (phone, mobile, fax) to list together on a business card, you may want to have them set up so that the numbers are aligned.

Without the fixedwidth attribute, it would look like this:



However, by adding the fixedwidth attribute, you can make the phone numbers align. Here is an example of what you could put in the field scripting area, if “phone,” “mobile,” and “fax” are all field names in your template. This would set the part of the line in the STYLERUN area to be in a space of fixed width. 

{{<STYLERUN fixedwidth="23">Phone:</STYLERUN>@phone@<br>}}
{{<STYLERUN fixedwidth="23">Mobile:</STYLERUN>@mobile@<br>}}
{{<STYLERUN fixedwidth="23">Fax:</STYLERUN>@fax@}}

Using this fixedwidth attribute would look like this:

Please note that the fixedwidth attribute will only work successfully with a font has has a fixed-width for horizontal character size. It will not work on fonts with proportional character widths. The Cousine font that is part of any eDocBuilder template is a fixed-width font. Some font families have a fixed-width face, but most do not.

spacebefore

Normally paragraphs have vertical space before and afterwards the body text. By setting this attribute to zero you can remove vertical space before the paragraph.

 spaceafter

Normally paragraphs have vertical space before and afterwards the body text. By setting this attribute to zero you can remove vertical space after the paragraph.

See also