Text Script Wizard

The Text Script Wizard is used first and foremost for the replacement of placeholders on the page, and is created automatically when dragging a data field or a detail table on the page. It also appears when adding a QR Code in order to determine the data added to that barcode. The result of this script is either the text appearing on the page, or the QR Code data.

Here are the options visible in the Text Script Wizard:

  • Name: The name of the script, making it easier to identify it.
  • Find: The Selector or Text to apply the result of the script to.
    • Selector: Uses CSS selectors to find the element to which the script applies.
    • Text: Uses text as a trigger for the script. The script applies to all instances of the text found in the template.
    • Selector and Text: Uses text as a trigger for the script but only applies to text within the specified Selector.
  • Wizard Results: Displays a list of the data that is sent to replace the result of the script:
    • Prefix: Static text to use before the set field.
    • Field: A drop-down to select which field contents to use in the script. Note that only fields from the Record tab are displayed, not from any detail tables.
    • Format: A special formatting modifier applied to the Field. The available formatting functions depend on the field type in the data model. For example, text fields can be set to uppercase or lowercase. Date fields can be set to long and short dates or different time displays.
    • Suffix: Static text to use after the set field.
  • [+] : Adds a new line to the Wizard Results. Note that by default there is no line return between fields in the list. Adding <br> in the Suffix or Prefix field can establish a line return.
  • [-] : Removes the currently selected line in the Wizard Results list.
  • Arrow Up: Moves the currently selected line up one position.
  • Arrow Down: Moves the currently selected line down one position.
  • Options group:
    • Insert method: Defines where and how the script inserts its results:
      • HTML: Inserts the result as processed HTML. If the result includes HTML tags and elements, they are inserted into the source code, and displayed as their result. For instance, <b>this is bold</b> will be displayed as this is bold.
      • Text: Inserts the result as-is, meaning HTML tags and elements will be displayed in the output.
      • Attribute: Inserts the result into the specified attribute. For example if the attribute is href and the script refers to a hyperlink (<a> element), the script will modify the link's destination.
  • OK: Click to save any changes made to the script, apply the changes in the template, and close the dialog.
  • Cancel: Click to close the dialog without saving changes.
  • Expand: Click to convert to a regular script, showing the code behind the wizard. Note that this action is not reversible.
  • Apply: Saves changes made to the script and applies the changes in the template without closing the dialog.

 

Table of Contents

Index

Glossary

-Search-

Back