Conditional Form Actions


I was wondering if there is a way currently to only have a form action post if a condition is met.

For example: If I filled out a form and toggle the checkbox “new” it would then trigger the form action to post to Mailchimp. But if I did not toggle the checkbox “new” or I toggle a different checkbox the form action would not post to Mailchimp.

Any suggestions would be welcome.