Octiv’s Document Scripting is the language you use to write conditional statements, substitute strings, and perform calculations with variables. You can use it with any edition of Octiv, as long as

  • Redlining is not enabled.
  • The variables you use correspond to defined variables.


Document Scripting comes in handy for applications like these:

  • Performing basic math functions with template variables, including those from Formstack and Salesforce.
  • Creating control flow statements—questions or if statements that perform functions like showing or hiding content.
  • Set up method statements for formatting currency, managing data types, and more.

Notes on Syntax

Keep in mind these points when using Document Scripting:

  • {{ }} Implies that the resulting TinderScript will not be shown in the final document
  • {{= }} Implies that the resulting TinderScript will be shown after being evaluated. All control flow statements must use the {{= }} syntax.
  • When referencing variables, the variable must be lowercase, cannot start with a number, and cannot have symbols.
  • Good variables look like this:
    • math_is_fun (this is the preferred convention)
    • mathisfun
  • Avoid variable-referencing mistakes like this:
    • 4number
    • miDDle
    • Class
    • 4
    • math%is%fun
    • math is fun

Did this article help?

Please provide us your feedback below.

* How helpful was this article?

If you have any additional questions and would like to be contacted by a member of our support team, please provide your email.