Add ability to add a passed value for checkboxes instead of passing checkbox text

  • 27 January 2016
  • 2 replies
  • 69 views

Hey guys,

We’re trying to integrate Unbounce’s web hooks with our API. One of the gripes I have at the moment is that I don’t have the ability to set the value of a checkbox.

Currently when you pass the checked checkbox choices via web hooks or post form, it sends out the checkbox text.

Let’s give users the ability to give the checkbox choices _ a value different than what is displayed _ in the checkbox text.

For example
If checkbox is checked pass: True (false, Y/ N, bubbles, etc.)

Would be absolutely wonderful :) 


2 replies

I second this request, this would be very valuable. I have learned that HubSpot and SalesForce require a yes/no or true/false value for our integration - but I am only able to pass the checkbox test. It’s a pretty big limitation for us right now.

Hi All. We ended up creating a custom script that is able to accomplish the above. To help summarize, here is an image of the front end of our form - which are the checkboxes a user must select:

We created a hidden form field for each of the checkboxes, like this:


The custom script that we've used:

$('#auto_Auto').change(function() {

var checked = $(this).is(':checked');

var value = checked ? 'TRUE' : 'FALSE';

$('#auto_h').val(value); }); $('#home_Home').change(function() {

var checked = $(this).is(':checked');

var value = checked ? 'TRUE' : 'FALSE';

$('#home_h').val(value); }); $('#life_Life').change(function() {

var checked = $(this).is(':checked');

var value = checked ? 'TRUE' : 'FALSE';

$('#life_h').val(value); });

 $('#health_Health').change(function() {

var checked = $(this).is(':checked');

var value = checked ? 'TRUE' : 'FALSE';

$('#health_h').val(value); });

 $('#renters_Renters').change(function() {

var checked = $(this).is(':checked');

var value = checked ? 'TRUE' : 'FALSE';

$('#renters_h').val(value); });

 $('#medicare_Medicare').change(function() {

var checked = $(this).is(':checked');

var value = checked ? 'TRUE' : 'FALSE';

$('#medicare_h').val(value); });

And the email that is sent out

Reply