HotDocs Author WorkflowCreate a template Add placeholders Group variables in dialogs Upload a template Create a script

Creating a Script Link Dialog Element

You can use a script link dialog element to add a link to a dialog that processes a computation when activated by the user. This may be useful if you want user to execute a calculation or other type of command and have the result immediately take effect.

To create a script link dialog element

  1. Open Component Studio.
  2. From the components list, open a dialog for editing.
  3. In the Contents and Layouts tab, at the bottom of the component editor, click the Script link dialog element icon.

    need image

  4. (Optional) Replace the default Name with a more descriptive one.

For convenience, if you leave the default Name (Script_Link), as you select or create the required computation, HotDocs appends the name of the computation to the end of the default name. For example, Script_Link becomes Script_Link_askLastName as you create a computation called askLastName.

  1. From the Type drop-down, select the script link's appearance:
    • Button – in the interview, displays a rectangular push button bearing the Text or Image (cropped to the Size—width and height) you set below. If you don't change the Size settings, the button appears at a default size
    • Hyperlink – in the interview, displays as a blue and underlined hyperlink Text, or as a clickable image without a border
  1. Use the Script drop-down to select the computation you want to activate on the dialog. Alternatively you can type the name of a new computation and click the Create button to create it.
  2. Choose either:
    1. Text- type the text you want to display on the button or as a hyperlink
    2. Image- use the Browse button to add the image you want to display on the button or as a hyperlink
  1. Click OK.