SYNTAQ has an on-line form-builder that enables you to create sophisticated documents from your form Records.
The ability to create Microsoft Word or Adobe PDF documents is available to all of our plans. To create a document from a Form Record a Microsoft Word document template is required. Your document Template is only different from a normal document in that it will need Word Mergefields that match the Form Field names used on your Form.
Upload Document Template
To upload your document Template to your Form, click the ‘button in the Form Builder.
Document Assembly Features
Document creation goes far beyond just inserting Form Fields into a Word Mergefield. Our platform supports advanced document assembly features, including:
- Repeat Sections (with filtering)
- Conditional content
- List formatting
- Case formatting
- Number to text formatting
- Currency to text formatting
- Leading and following switches
- Date formatting
- Mask formatting
The simplest concept in document automation is inserting content from a Form Field on a Form into a document Template. This is done by including a Mergefield into the document Template with the same Field Name as is used on your Form:
Not all content within a document Template will be relevant to each end Document. Depending on the User’s answers on the Form, you may wish to include some content and exclude other content. This is called ‘conditional content’.
Conditional content is included or taken out of a document Template by the use of the ‘IF’ statement. The
«IF» statement is usually driven by the answer to a Form Field on a Form. For example, the Form may ask the question “Do you have a dog?” [Field: Has_Dog_yn] If the User answers ‘yes’ to this question, then certain content will be included in the Document, otherwise the content will be left out. This would be achieved using the following IF statements in the Document Template:
Example «IFStart:A1 has_dog_yn = 'true'»you have a dog«IFEnd:A1» «IFStart:B1 has_dog_yn = 'false'»you do not have a dog«IFEnd:B1»
Multi-row Repeat Section data
Sometimes a Field needs to contain multiple data. For example, a range of numbers, a list of dates, or a number of lines on an invoice. In order to record and store this type of data you can use a Field surrounded within a
«Table» statement. The
«Table» statement enables the User to enter multiple lines of data into the one Field.
«TableStart:1»This content will be repeated for each row of data«TableEnd:1»
«TableStart:1 has_dog_yn = 'true'»This content will be repeated for each row of data where has_dog=true«TableEnd:1»
«ListFormat» statement will format lists in Documents accordingly to set rules. In order to implement the
«ListFormat» statement three components are required:
- First you need an opening
«ListFormatStart»statement before the paragraphs.
- Then you need to include a
«ListItem»statement at the end of each paragraph where you want to include the list formatting, i.e. the “.”, “;” or “; and”, etc.
- Finally you need to include a closing
«ListFormatEnd»statement after the end of the paragraphs.
Example «ListFormatStart:List1 a,b,, and c» «TableStart:1» «Field_1000»«ListItem:List1» «TableEnd:1» «ListFormatEnd:1»
Our Word add-in makes this process much simpler, see here for details.
Letter Formatting Switches
A Switch can change the format or action of Field content. For example, a Switch can make all of the Field’s contents into capital letters, format a date, or it can format the content into a given number.
Leading and Following Switches
These Switches enable you to include content before or after the Field’s contents. This can be useful to provide the leading wording, or trailing wording, that is appropriate to a Field in a particular context:
«Field_1000 \f "following content"»
«Field_1000 \b "before content"»
These switches change the format of a date Field:
Example «Field_1000 \@ ddd MMM YYYY»
«Field_1000 \# "$#,##0"»dollars with no cents
«Field_1000 \# "$,0.00"»dollars and cents
You can format the content of a Field using a ‘mask’:
Example «Field_1000 \Mask ## ### ###»
Deleting Empty paragraphs
The WF:DelEmptyPara Switch will remove a paragraph mark if there is no content in the paragraph. This has the effect of removing empty lines from the finished Document. In the following example, if one or more of the lines of the address are not present, then there will not be a gap above, below or between the entered lines.