I have found this code in the documentation:
{exp:mailinglist:form list="default"}
Join our Mailing List
<input type="text" name="email" value="{email}" />
<input type="submit" value="submit" />
{/exp:mailinglist:form}But this means I have to create a seperate form for the mailing list.
I have a contact form that contains this e-mail field:
<label for="spryMail">E-Mail:</label> </td>
<td>
<span>
<input type="text" name="from" id="spryMail" value="{member_email}" />
<span class="textfieldRequiredMsg">http://www.octografx.com/images/contact_false.jpg</span><span class="textfieldInvalidFormatMsg"><a href="http://www.octografx.com/images/contact_false.jpg">http://www.octografx.com/images/contact_false.jpg</a></span> </span>And it contains this checkbox:
<span>
<br>
<input type="checkbox" name="message[]" id="checkbox_2" value="MAILING"/>
<label for="spyCallCheck">Ik wil in de mailing lijst worden opgenomen. </label><br><br>
</span>Is it possible to have the e-mail adres automaticly added to the mailing list when the checkbox is checked?
Thanks for the reactions 😊