The value action allows you to record the click on the button to create a variable and define its value according to the button that was clicked. For example, you can easily get YES/NO, Male/Female, or data from branched questionnaires.
Action value
Syntax: value: [field name] = [value]
Example of a write that sends (or stores) opt_status
with the value according to the pressed button (yes/no):
<button onclick="mailocator.do('value:opt_status=yes')">YES</button>
<button onclick="mailocator.do('value:opt_status=no')">NO</button>
Retrieved from
- forms where the selection is made by selecting one of several buttons
- branched forms
- in user javascript