John Brinkman describes form variables in his post, covering all of the various options:
- Creating variables in the File > Form Properties > Variables tab.
I wanted to explore a use case where form variables associated with a particular field would be useful. As an example here is a form where each of the green buttons can contain a form variable in the button’s <desc> element. We can then script against the value of the button’s variable (null, 1 or 0).
You can use this approach for your own particular requirements.