Try pre-set campaigns and get your first conversions within 15 minutes.
Mailocator / Actions 2025-01-28 10:15:32

Adding a variable and value between form data

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