Marketo Form - Uncheck other checkboxes when 'Unsubscribe from all' box is checked | Community
Skip to main content
New Participant
April 29, 2020
Solved

Marketo Form - Uncheck other checkboxes when 'Unsubscribe from all' box is checked

  • April 29, 2020
  • 1 reply
  • 8583 views

Hello,

 

I've been trying to find some javascript on these forums that will work but have had no luck. Thought I would reach out here in the hopes that somebody can help me out.

 

Basically the form is going to be used for Subscription Preferences - 8 checkboxes in total.

 

The last checkbox is 'Unsubscribe from all'  -  Once checked, I need this checkbox to un-check any other checkboxes that have been checked by the user.

 

Here is the landing page I'm using the test the form: https://page.elmosoftware.com.au/update_subscription-Centre.html

 

If anybody can help point me in the right direction that would be greatly appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

MktoForms2 :: Select All Checkbox 

 

Set the Stored Value to * (an asterisk) for whatever field you want to be Select/Unselect All.

 

If you want to invert the logic, so the box acts as an Unselect All when it's checked, use -* as the Stored Value.

 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
April 29, 2020

MktoForms2 :: Select All Checkbox 

 

Set the Stored Value to * (an asterisk) for whatever field you want to be Select/Unselect All.

 

If you want to invert the logic, so the box acts as an Unselect All when it's checked, use -* as the Stored Value.

 

AndrewSAuthor
New Participant
April 29, 2020

Hi Sanford

 

Thank you for replying so quickly.

 

Just spoke with our marketing team to clarify the functionality.

 

When a user goes to the page, all boxes will be de-selected  -  they can then choose what they want to subscribe to.

 

If they then click on the 'Unsubscribe from all' checkbox  -  this should only de-select any checkboxes they have previously clicked on.

 

So basically it only needs to behave as a "de-select all other checkboxes" function and never as a "select all" function.

 

Is there a dumbed down version of the script that can achieve this?

 

Thanks again

SanfordWhiteman
New Participant
April 29, 2020

Nothing needs to be dumbed down in the code, it uses whatever config you have in Form Editor.

 

So if you only use the -* that's a "positive Unselect All". When it's checked, other boxes are forcibly unchecked.