Ch. 032 Supported Tags for Field Scripting

EDOCBUILDER > eDocBuilder Documentation Manual & Videos

Supported Tags for Field Scripting

This guide is referencing supported tags in field scripting. 

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

 

 
<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:

 

Attribute 

Notes 

 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. (Note: Line breaks are added only for clarity; you would not type
them into the editor box, or you would get extra blank lines in your text.)

{{<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 result in a phone number block that looks like this:


 
____________________________________________________________________________________________
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:
 
Using the transform attribute to adjust scaling of text...