Adding interest groups to Events Manager form
-
Hi,
I’ve been successful in adding a subscribe checkbox to the Events Manager registration form, however I cannot get it to work with interest groups.
I have tried adding checkboxes as suggested in the FAQ however it does not seem to work.
To get it to play nice with Events Manager I have had to hardcode the checkbox into the EM template.This is the mark up I’m using:
<?php if ( is_user_logged_in() ) { echo ''; } else { echo '<div id="mc4wp-checkbox"><label><input type="checkbox" name="mc4wp-subscribe" value="1" checked="checked" /> Subscribe to our newsletter?</label> <select> <option value="" disabled selected>Select your region</option> <option value="8" name="mc4wp-GROUPINGS[7601][8]" id="mce-group[7601]-7601-0">Brisbane</option> <option value="16" name="mc4wp-GROUPINGS[7601][16]" id="mce-group[7601]-7601-1">Gold Coast</option> <option value="32" name="mc4wp-GROUPINGS[7601][32]" id="mce-group[7601]-7601-2">Sunshine Coast</option> <option value="64" name="mc4wp-GROUPINGS[7601][64]" id="mce-group[7601]-7601-3">Perth</option> </select> </div>'; } ?>I’ve tried a few different options with this i.e. not having the
mc4wpin thenameaddingmc4wpto theidetc.I also tried using multiple checkboxes instead of a select list.
markup below:<label><input type="checkbox" name="GROUPINGS[Gold Coast][]" value="Gold Coast" /> Gold Coast</label> <label><input type="checkbox" name="GROUPINGS[Brisbane][]" value="Brisbane" /> Brisbane</label> <label><input type="checkbox" name="GROUPINGS[Sunshine Coast][]" value="Sunshine Coast" /> Sunshine Coast</label> <label><input type="checkbox" name="GROUPINGS[Perth][]" value="Perth" /> Perth</label>If you can help in anyway that’d be brilliant.
Thanks
The topic ‘Adding interest groups to Events Manager form’ is closed to new replies.