Try pre-set campaigns and get your first conversions within 15 minutes.
Mailocator / Custom HTML and JavaScript 2025-02-17 18:16:56

Transfer of field content to third-party tools

In the latest version of Mailocator, the FORM tag is not required to close form elements. Rather, the FORM tag is not recommended, unless it is necessary, do not use it.

  • The FORM tag is not mandatory, rather it is not recommended for use from version 5 and above
  • mandatory fields can be tagged with the data-mandatory attribute, if this attribute contains text, it will be displayed when the field value is empty
  • a mandatory field with the data-mandatory attribute and the value true (without a text message) will cause a shake effect if the field is empty (unselected, unchecked)
  • all available input types, textarea and select are processed
  • data is collected after each step into a stack, which can be sent in different steps by the subscribe or save action
  • if a mandatory field is unchecked or empty, the eventual subscribe or save action cannot be completed

Example of mandatory fields

Mandatory SELECT

<select name="opt_select" data-mandatory="true">
	<option value="">select...</option>
	<option value="1">selected!</option>
</select>
  • attribute data-mlctr-mandatory="true" must be added
  • the first value (hint) must be empty (not 0, false, etc.)

Povinný SELECT s hláškou

<select name="opt_select" data-mandatory="Please select an option!">
	<option value="">select...</option>
	<option value="1">selected!</option>
</select>