On my Unsubscribe form, i am adding in a check box to allow users to either Unsub from our emails or just receive monthly recap emails.
So now there are 2 check boxes, the default boxed checked is to receive monthly recap emails, is there a way to have the marketo form uncheck the Monthly recap check box if someone choses the Unsubscribe from email check box?
There is, but I don't think checkboxes give the right UX here. The web widget that is understood as "set of mutually exclusive options" is the radio button set, not a checkbox set.
Yes, radio button is the way to go here most likely.
Otherwise you can set up visibility rules to help out, but it is not exactly what you want
I created a new field in marketo so that users can select to receive emails once a month, how can i make the radio button update this field instead of the Unsubscribe field.
Are you saying you want radio button 1 to update Unsubscribe and radio button 2 to update another field?
Correct.
This is quite simple.
The key concepts:
Example form:
Code (note that Contact_Status__c is the custom field I'm using for subscription type; yours will be different)
MktoForms2.whenReady(function(form){
form.onSubmit(function(form){
form.setValues({
Unsubscribed : form.getValues()['Contact_Status__c'] == 'Unsubscribe' ? 'true' : 'false'
});
});
});
Sweet demo action:
Use javascript on the page.