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

Blog / Knowledge base

Updated: 13. November 2020

Action setval - change of values in Mailocator forms

The setval action can be used to dynamically change the default value in pop-ups

If you need to pre-populate any field in Mailocator based on any processes on the page, you can do so very easily with the setval action.

What can be set?
Pre-fill an email address, name or any text field,
change the values of hidden inputs,
check any checkbox,
check one of the radio inputs.



Examples of setting values in a form:


Change or preset of an email address:
mailocator.action.do("setval:email,john.doe@email.tld");

Check the checkbox chkbox1 :
mailocator.action.do("setval:chkbox1");

Radio gender tag with female value:
mailocator.action.do("setval:gender,female");


RELATED

Switching between integrations within the same project

If you need to route some campaigns to the CRM, others to an email tool, and store the results from surveys in an independent database, this solution is also easy to set up.

Automated values, adding values to hidden inputs

Merging of arbitrary fields and automatic filling of selected fields with a series of system values

Launch a campaign when you hover or touch a specific location on the page

Mark a location that triggers a campaign when the user hovers over it or touches it on a touch device

Mailocator Events

With events, you can intelligently manage the sequence of campaigns across the entire workflow scenario and display much more relevant and precisely targeted content in real time.

Notification

Set up the display of notifications on your site using Mailocator