Are you preparing a pardot form? Do you need to have the checking of one box disable/uncheck the checkmarks in all of the other boxes? Don’t worry. This week’s Script Crypt has you covered. Add this to your layout template and update the numbers to correct the appropriate question id to empower your check to uncheck magic.

<script type="text/javascript">

 var $others = $('input[type="checkbox"]').not('#129961_71145pi_129961_71145_486689')

$('#129961_71145pi_129961_71145_486689').change(function () {

    if (this.checked) {

        $others.prop('checked', false)

    }

});

$others.change(function () {

    if (this.checked) {

        $('#129961_71145pi_129961_71145_486689').prop('checked', false)

    }

})

</script>[/code