Handlebars Document

 

About

The Handlebars document allows you to build fully custom documents of virtually any type.  For example, you could build a custom CSV format, or even a KML file.   You can also add loops or conditions to control how the document behaves in different scenarios, based on the data in a form submission.

If you are looking to build a custom PDF, Word, or HTML document, we recommend using those document types instead; Handlebars can be used to customize those documents. 

Like all documents in ProntoForms, Handlebars documents can be sent to cloud and enterprise services, web services, and more.  A number of document types are available, and multiple documents can be sent with a single form submission.  Read more about documents here. 

 

Handlebars is a javascript library used for building clean, logicless templates in an easy way.  Try out Handlebars and learn what it can do. 

[ top ]

 

admin.pngnouser.pngnomobile.png

Basic Setup

  1. Create the document, and select Handlebars as the document type. 
  2. Name the document, and optionally provide a description. 
  3. Configure a document Filename, to control what the document will be named when sent through destinations. Use Data Record Expression Language (DREL). 
  4. Choose a Document Timezone source. 
  5. Optionally auto-link the document to forms. 

 [ top ]

 

Template Setup

File Extension

The document can be any text-based file type (HTML, .txt. .xml, etc). This is the file type the document will create.  

 

Content Type

Leave this blank for automatic resolution based on file extension.  Read here for a list of content types.

 

Template

Supply the document body, using Handlebars to reference answers from your form submission. Read the documentation here.

Remember to format your template according to the content type; if you want to generate an XML document, be sure to format it correctly in XML. 

[ top ]

 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments