Action setval - change of values in Mailocator forms
The setval action can be used to dynamically change the default value in pop-ups
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");