SetTemplate
This function will set template for chosen field.
SetTemplate("fieldName", "templateName");Function arguments
Dział zatytułowany „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
Dział zatytułowany „Return value”This function returns Boolean. This function always returns true.
Examples
Dział zatytułowany „Examples”Example 1: This will add template ’template.docx’ to field ’UploadField’
SetTemplate("UploadField", "template.docx");