This walkthrough builds a simple offer letter template.
Type or paste the letter into the editor. Wherever something changes from letter to letter, use a variable:
<p>Dear {{a_counterparty_name}},</p>
<p>We are pleased to offer you the role of {{job_title}} at {{c_entity}},
starting on {{a_date_start}}.</p>
<p>Your salary will be {{salary}} a year.</p>
{{a_counterparty_name}}, {{c_entity}} and {{a_date_start}} are built in. See Document variables. {{job_title}} and {{salary}} are your own variables, which you define next.
Open the Variables panel and add a field for each of your own variables. In code, the fields look like this:
--#: ---name:job_title ---type:text ---appears_on:extras ---mini_label:Job title ---required:true --#: ---name:salary ---type:amount ---appears_on:extras ---mini_label:Annual salary ---string_format:currency ---required:true
Each field appears on the document creation form, in the section named by ---appears_on. See Template fields and the Template field directives reference.
Add a paragraph only for senior roles:
[[IF=salary(GREATER_THAN £60000)]] <p>You will be eligible for the senior leadership bonus scheme.</p> [[ENDIF]]
See Logic statements for every statement.
A Signable document has a signature block for the counterparty and one for your side by default. Use the template settings to name who signs, or define your own signature blocks. See Signature blocks.
To place the signatures somewhere other than the end, put [[SIGNATURE_BLOCK]] where they should go.
Create a document from the template, fill in the form and check the result. Try values that switch each [[IF]] on and off. When you're happy, use the template in a workflow with specific_document or auto_document. See Document actions.
When writing a template: