Home → Using LincDoc 3.1+ → eForm Administration → LincDoc Markup - Microsoft Word/OpenOffice Source Files
This topic describes the syntax that must be used to define fields when marking up a Microsoft Word or OpenOffice source document for use in LincDoc
A field is identified by two "less than" symbols ( << ) followed by the field name followed by two "greater than" symbols ( >> ). For example: <<firstName>>.
The following rules apply to field names:
You can define hidden fields in your Word document. These fields never display in a generated document, but they will be part of the data entry process.
This field type is specified using the hidden option.
For example: <<firstName[hidden]>>
Both types of codelists available in LincDoc (codelists and codelist-custom) use drop-down list controls.
The value displayed from the drop-down list in your form is based on the "code" value of the underlying codelist. If you want to display the label, instead of the code value, you can use the CodeListLabel function via a Generation calculation.
Sometimes a form needs to query the user to input multiple values (also known as multi-row values in LincDoc) for a particular set of fields that are to go into a table in the final document, and the number of values required is only known when executing the eForm. LincDoc will recognize this situation when any source document contains a simple two row table with the first row being a header row and the second row containing a template which describes what values are to be gathered at data entry time.
An example of this type of table is shown below:
First Name |
Middle Initial |
Last Name |
<<fname#>> |
<<minitial#>> |
<<lname#>> |
Notice how the field references end with a pound sign (#), which tells the LincDoc system that these fields are to contain multiple values. At data entry time the user will have the capability to enter as many rows of values as necessary.
This technique does not work for PDF source documents. You must either use Microsoft Word files (.doc and .docx) or OpenOffice files (.odt).
First Name |
Middle Initial |
Last Name |
<<fname1#>> |
<<minitial1#>> |
<<lname1#>> |
Name |
Age |
Address |
<<name#>> |
<<age#>> |
Street: <<street#>> City: <<city#>> State: <<state#>> Zip code: <<zip#>> |
In the advanced case of having a repeating source document where it is desired to not have a multi-value table in that document expand out, you can use the no_multirow_expand option in that source document's field definitions to prevent the expansion of multi-value tables.
For example: <<product#[no_multirow_expand]>>
Note: You can use the hidden option, described above, in conjunction with the no_multirow_expand option, as long as the options are separated by a comma within the square brackets (for example: <<product#[hidden, no_multirow_expand]>>)
Conditional text allows you to dynamically include paragraphs or text in your completed documents. This functionality is only available with Document Packages. For more information, see Document Package Markup.