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
- Open Component Studio.
- From the components list, open a dialog for editing.
- In the Contents and Layouts tab, at the bottom of the component editor, click the Script link dialog element icon.
- (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.
- 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
- 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.
- Choose either:
- Text- type the text you want to display on the button or as a hyperlink
- Image- use the Browse button to add the image you want to display on the button or as a hyperlink
- Click OK.