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

Form elements – inputs

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

You can use any type of INPUT, TEXTAREA or SELECT tag.

Sending values to integrated tools

Rules for passing values to integrated tools

All inputs to be processed by Mailocator must have the prefix opt_ or sys_

All other inputs are ignored

Unless otherwise set, when passing to the integrated tool, the prefix is removed and the name without prefix is used

If you need to pass a value from Mailocator to the name field in your tool, the INPUT@ tag in Mailocator will look like this:

<input type="text" name="opt_name" value="" placeholder="enter your name"> 

When to use opt_ and sys_ prefix

The opt_ prefix is the default for most integrations

Some tools (Maileon, Mailkit) require a distinction between system fields and user-created fields. In this case, you need to use the sys_ prefix for system fields.

Input manager

We preferably use the Input manager directly in the Editor, where the fields are already preconfigured, including the fields of several tools. This will reduce the possibility of an error or typo.

open the content in the Editor

select Tools and Manage Forms

you will see an overview of all the fields you use in the content

set the names, default values, specify whether the field is required or not and set the processing method

you can also simply add hidden fields (hidden input), which you can fill with background values