Technická podpora


Merge input/select fields into one value

Sometimes you need to merge some differrent values into one.
It can be easier to use one complex date value instead two (month and year) in you ESP mailings.

Note: You have to switch Mailocator Extensions on at your campaign preferences

For example you have following two inputs in your popup:

<select name="year">
  <option value="1999">1999</option>
  <option value="2019">2019</option>
</select>

<select name="mon">
  <option value="jan">jan</option>
  <option value="feb">feb</option>
</select>







 
Next place following hidden input used for merged value. Use class name with keyword mlctr-ext-merge and define the data-merge attribute containing inputs to merge splitted by `|`

<input type="hidden" name="opt_date" data-merge="year|mon" class="mlctr-ext-merge" value="0"/>



 
When popup is submited, value opt_date (or date) is delivered to your ESP custom filed.