SetTemplate
This function will set template for chosen field.
Syntax
SetTemplate("fieldName", "templateName");
Function arguments
- fieldName – (String) The name of the field .
- templateName – (String) The name of the template, that you want to add to field .
Return value
This function returns Boolean.
This function always returns true.
Examples
Example 1:
This will add template 'template.docx’ to field 'UploadField’
SetTemplate("UploadField", "template.docx");