Přejít k obsahu  Přejít k hlavnímu menu

Blog / Knowledge base

Updated: 25. May 2020

Merging values ​​from multiple inputs into one

Mailocator allows you to serialize the data submitted from the form into a single field before submitting, which is useful, for example, when submitting a date.


Case study:
Merge month and year into one field and send it to ESP

See how easy it is to merge values ​​from two selections - month and year - into one field and send this field to a third-party tool (newsletter subscription).

Create the necessary select tags and add the necessary options, for example:
<select name="year">
    <option value="1999">1999</option>
    <option value="2019">2019</option>
    <option value="2029">2029</option>
</select>

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







Add a hidden input that will contain the combined value of the month and year.

Name the input according to the name of the custom field in your tool and add the prefix opt_, for example opt_date
Add the data-merge attribute and enter the names from the selections for month and year year | mon separated by a value |
Add a class to the input mlctr-ext-merge

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





You can merge any number of values.
For this feature, turn on the Mailocator Extension in the version settings.

RELATED

Instructions for your own design for the wheel of fortune

How to create a wheel of fortune with your own HTML and CSS code

How to Thank you page in Mailocator?

See how to better bring your future customers back to your site as you complete the verification process.

Wheel of Fortune

A popular gamification element is the wheel of fortune, in which the user is offered a reward for providing data or subscribing to newsletters.

Mark campaign conversions with actions

Where a campaign is not automatically marked as converted (such as a newsletter sign-up), you can add a conversion using an action to better evaluate the success of the campaign.

Scenario testing laboratory

An easy way to verify the functionality of the scenario in Mailocator is to run a laboratory where you can see the entire course of processing over time, including the evaluation of conditions and user actions.

Disabling and enabling Mailocator using a parameter in the URL

If you need to limit campaigns in time and the UTM parameter is not available, you can use the internal parameter of Mailocator