redirect depending on interest group
-
Hello and thanks for your plugin.
I have a simple form with name, surname, email and interest groups, already created in Mailchimp:
[ redundant link removed ]
I’d like to redirect to a Thank you page only if the user picks “Group 1”, how can I do something like that?Here is the code of my form:
<label>First Name*</label> <input type="text" name="FNAME" placeholder="first name" required=""> <br><br> <label>Last Name*</label> <input type="text" name="LNAME" placeholder="last name" required=""> <br><br> <label>E-mail address* <input type="email" name="EMAIL" placeholder="E-mail address" required /> </label> <br><br> Groups of interest (pick at least one)*<br> <label> <input name="INTERESTS[e81db3f978][]" type="checkbox" value="9f456824c8"> <span>Group 1</span> </label> <label> <input name="INTERESTS[e81db3f978][]" type="checkbox" value="bce4fef6f2"> <span>Group 2</span> </label> <br><br> <input type="submit" value="Subscribe" /> <script> /* Makes checkboxes required - at least one per group */ jQuery('.mc4wp-form').on('change', function(evt) { let checkboxFields = jQuery(this).find('[name^="INTERESTS"]'); let checkedCount = checkboxFields.filter(':checked').length; checkboxFields.prop('required', checkedCount == 0); }); </script>
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘redirect depending on interest group’ is closed to new replies.