Add a Link to a Dialog That Runs a Computation

You can add a link that processes a Computation variable to a HotDocs dialog. This may be useful if you want users to execute a calculation or other type of command and have the result immediately take effect.

To add a button to a dialog that runs a Computation variable

  1. Open a dialog for editing. (See Edit a Custom Dialog.) HotDocs displays the Dialog Editor .
  2. At the Properties tab of the Dialog Editor, click the Dialog Element button and drag it to the Contents list. The Dialog Element Editor appears.
  3. Enter a name for the component in the Dialog element name field, or select Generate name automatically , which allows HotDocs to name the component.
  4. In the Style group, select Script link.
  5. In the Computation field, enter the name of the Computation variable you want to run. (Click the New Component button to create or edit the computation.)
  6. In the Link text field, enter the text you want to use as the link.
  7. Click the Options tab and select how you'd like the link to appear on the dialog, based on the following information:
    • In the Display as group, select whether the link should be a Button or Hyperlink. (If you select Button, you can specify a custom button size in the Button size group.)
    • If you select Hyperlink, select whether the link should include text, an image, or both in the Display using group. (Enter the name of the image file in the Image file field if you select Image.)

Any images displayed in a browser-based (HotDocs Server) interview must be located in the same folder as the template. Also, bitmap (.BMP) files are not supported in browser-based interviews. Additionally, Silverlight does not support all possible color depths that are included in the PNG specification. Specifically, gray scale and 64-bit true color are not supported in Silverlight.

    • In the Display in group, select whether the link should appear when the dialog is displayed in Desktop interviews, Server interviews, or both.
  1. Click OK. The Dialog Element Editor is closed.
  2. Drag the component up or down in the Contents list, depending on where you want the hyperlink placed on the dialog.