Skip to main content

8. Insert tags

The extension replaces insert tags in the position definitions, so that, if necessary, dynamic data or the data of the registered member may be used.

The extension also provides its own insert tags available:

{{pdf_forms::pdfdocument}}

can be used to include the file link of the generated document in a download link. If you are not using the Contao download content element, the file must be publicly accessible; in the case of a protected PDF directory, the download must take place via the Contao content element.

{{pdf_forms::pdfdocument::name}}

can be used to insert only the file name of the generated document in the reply page. This is also the file name of the PDF attachment to the email.

{{pdf_forms::password_random}}

generates a random password, e.g. as the permissions password for the PDF.

{{pdf_forms::form_*}}

With this InsertTag, it is possible to add transferred content from a form field to the PDF file name in the form properties. For example, a process number from a hidden table field. 
Replace the * with the name of the form field.