Following on from last week’s new feature – generating PDF documents with the click of a button, this week’s update removes the need for the button click, generating documents automatically based on criteria you specify.
For example, if your system tracks exam marks, you may wish to automatically generate a certificate whenever someone passes. Another more common example might be generating invoices for all work carried out this month.
- The first step is to set up and upload a template as per ‘generating PDF documents‘
- Add a date field to the table that contains the document file field, for the system to record the time each document was generated. For the purposes of these instructions, we’ll assume it’s called ‘document generation time’
- Create a new view to contain only records that need documents generating, e.g. with a filter added to remove any records that already have a document
- In the manage tab for the view, click the ‘sync’ button and scroll down to ‘automatic document generation’. Select the date field that you created in step 2 above, i.e. ‘document generation time’
That’s it. Now whenever a record appears in the view, a document will be generated. Note this generation may take up to 10 minutes from the time the record appears in the view to allow for the fact if a record’s being edited, we want to make sure all information has been captured that may go into the document template.