Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Disable auto select when label is clicked

I have an item in a list with a popup. We'd like to be able to click the popup link but NOT trigger the checkbox selection.

[%PopUp("Paid dependent/caregiver","dependentcaregiver.htm",450,310)%]<img src="[%GraphicsPath()%]infoicon.gif" alt="" border="0"> leave (e.g., 1 week)
asked Jun 8 by rosellearingo (120 points)

1 Answer

0 votes
Please try adding this script to your select question:

<script>
$(document).ready(function(){
    $('#[% QuestionName() %]_div .clickable').unbind('click');
    $(document).on('click', '#[% QuestionName() %]_div .clickable', function(e){
        if (!$(e.target).hasClass('popup_link')) {
            var variable = $(this).find('label').attr('for');
            SSI_SetSelect(variable, !SSI_GetValue(variable));
        }
    });
})
</script>
answered 6 days ago by Zachary Platinum Sawtooth Software, Inc. (173,775 points)
...