You can add dynamic text to your templates, such as Page Numbers, the Unique ID of the final documents or even text from another field within the form using Dynamic Element Code.
It's really easy to do, just follow these steps:
Element codes can be used together aswell, so you can create one Text Box Element named @pagenumbers and have the text say:
Page {page_number} of {toal_pages} pages
which would end up displaying something like:
Page 2 of 10 pages
You can see an example of the output on the bottom left of the Booking Form Example template.
Below is a list of all the codes currently implemented with a description and some example text for how you could use them.
Text: {document_uid}
Description: Use to display the Unique Document Identifier on this document. This is useful when you expect the completed document to be printed and faxed or mailed, so that you have a reference ID that can be used to find the digital entry. Every entry made to your templates has a DocumentUID, and you can search on them within the Entries page.
Example Text: Administration Document ID: {document_uid}
Text: {page_number}
Description: Use to display the current page number on the document.
Example Text: Current page: {page_number}
Text: {total_pages}
Description: Use to display the total count of pages on the document.
Example Text: Total Pages: {total_pages}
This feature is a little different than the previous 3, as it allows you to re-use the text of another element. The replacement occurs in the final PDF or CSV download. (Unlike the previous dynamic codes, which can be replaced when the web form is shown. As the user has not entered any values for this one yet, we can't replace until the form is submitted.)
The UniqueID of an element is found in the editor when creating your form, on the left menu in the "Name, value & display" section. It must be preceded with the to letter "el" (that's a lower case E and L), then a colon.
Text: {el:<another_elements_unique_id>}
Description: Use this to render another elements text in this element when the PDF is created
Example Text: {el:a1b2c3d4e5f6g7h8}
Example Usage:
Now when the form is submitted, the value from Element 1 will be placed into Element 2 in the final PDF and the CSV downloads from the entries page.
If you want to hide the code that can be seen within element 2 on your web form, you can place another element over the top that has a colored background, and then uncheck that elements "Display in downloads" setting so that it is removed in the PDF.