How to add a variable to an HTML button
1 In the layout editor, select the HTML button to which to add a variable.
2 Choose Property Editor, then choose the Variables tab.
3 In Variables, choose Add.
4 In Add Variables, specify the following values:
1 In Name, type a unique name for the variable. JavaScript event handlers use the name to access the variable’s information through dataObject. For example, the event handler accesses a variable named credit as dataObject.credit.
2 In Expression, type the value that the variable contains. You can also use Expression Builder to create a value. Choose OK.
Variables displays the variable you created, as shown in
Figure 19‑12.
Figure 19‑12 Variable defined for an HTML button