Field behaviour on a form - if checked map to a field as false | Community
Skip to main content
New Participant
July 30, 2021
Solved

Field behaviour on a form - if checked map to a field as false

  • July 30, 2021
  • 2 replies
  • 5529 views

I am in the process of adding a check box to a form. However the behaviour of the check box I would like is the opposite to what the field is capturing.

 

example

Please tick the box if you don't want to receive news, updates or product information from MHR International

example: if New check box = true, mapped to an opt in field = false.

 

Is this possible, or do I need to map to a separate field to first map to the opt out, and then have a trigger which will control if the opt in field is true or false?

 

Thanks

 

Best answer by Dave_Roberts

Hey Adele,

 

You might try using the "checkboxes" field type instead of the "checkbox" field type on your form. The checkboxes field type allows you to enter 2 bits of information:
1) Display Value -- this is the text to the right of the input

2) Stored Value -- this is the value that gets stored on the record

 

Once you setup a new checkboxes field, you can select the "Values" link in the right column of the editor to adjust both what the user sees and what gets sent back to the server. This sounds like you a situation where you'd want to add:

1) Please tick the box if you don't want to receive news, updates or product information from MHR International to the Display Value
2) No to the Stored Value

 

I just posted a walk-thru for changing a "checkbox" field to a "checkboxes" field on another post here: https://nation.marketo.com/t5/product-discussions/make-label-wrap-with-two-column-checkboxes/td-p/315230 and there's some screenshots there of where/how to update the Display Value and the Stored Value for a "checkboxes" field. 

 

Let me know if you've got any questions on how this gets setup, I'd be happy to help -- or if you were able to get this working for anyone else who might run into a similar issue in the future.

 

Thanks,
Dave

2 replies

Community Manager
July 30, 2021

Just a bit of a note, not so much on the functionality, but on what this checkbox is supposed to do. 

 

Depending on where you're located, someone might consider this to be a "pre-checked box." That the user has to actively opt-out instead of actively opt-in. If you're in Canada, for example, you cannot have pre-checked opt-in boxes. I don't know where you're located, so be sure to check with your legal or compliance teams.

New Participant
July 30, 2021

Thank you for pointing this out. I did get permission from our DPO that they were happy to proceed with this option. 

Dave_Roberts
Dave_RobertsAccepted solution
New Participant
July 30, 2021

Hey Adele,

 

You might try using the "checkboxes" field type instead of the "checkbox" field type on your form. The checkboxes field type allows you to enter 2 bits of information:
1) Display Value -- this is the text to the right of the input

2) Stored Value -- this is the value that gets stored on the record

 

Once you setup a new checkboxes field, you can select the "Values" link in the right column of the editor to adjust both what the user sees and what gets sent back to the server. This sounds like you a situation where you'd want to add:

1) Please tick the box if you don't want to receive news, updates or product information from MHR International to the Display Value
2) No to the Stored Value

 

I just posted a walk-thru for changing a "checkbox" field to a "checkboxes" field on another post here: https://nation.marketo.com/t5/product-discussions/make-label-wrap-with-two-column-checkboxes/td-p/315230 and there's some screenshots there of where/how to update the Display Value and the Stored Value for a "checkboxes" field. 

 

Let me know if you've got any questions on how this gets setup, I'd be happy to help -- or if you were able to get this working for anyone else who might run into a similar issue in the future.

 

Thanks,
Dave

New Participant
July 30, 2021

Ahhh Amazing 😊 

 

I am going to have a run through of this now. I have used the check box for yes and no, but didn't realise I could use with only one.

If this works it will save so much.

I shall pop back in if I get stuck 😁

 

thank you so much for such a quick response.