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

Action setval - change of values in Mailocator forms

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

Connect and make forms for dialog-Mail

See how to easily connect dialog-Mail and build and setup subscription popup

Changes in the import of discount codes from 1 December 2020

If you use discount codes in Mailocator, please pay attention to the following information

Draw a random discount code

Do you need to draw a random win or a code to gamble popup? Mailocator allows you to easily set the probability to one hundredth of a percent, randomly select a win and deliver it to the email tool.

Launch a campaign using a URL

You can also invoke Mailocator campaigns or designs at any time using a parameter in your site´s URL

Transfer of data from Mailocator to ESP

Sometimes it is useful to provide additional information from Mailocator, usually state, gender, favorite categories, discount code or name and surname. How to do it?