Skip to content

Instantly share code, notes, and snippets.

@danaskallman
Last active August 29, 2015 14:04
Show Gist options
  • Save danaskallman/69d015c9828d925f0b7d to your computer and use it in GitHub Desktop.
Save danaskallman/69d015c9828d925f0b7d to your computer and use it in GitHub Desktop.
Sample JS for Event Custom Template v.01
{literal}
<script type="text/javascript">
jQuery('#CIVICRM_QFID_58_2').change(function(){
if (jQuery('#CIVICRM_QFID_58_2').attr('checked') == 'checked') {
jQuery('#CIVICRM_QFID_0_16').attr('checked', 'checked');
jQuery('.Block_2-section').hide();
}
});
jQuery('#CIVICRM_QFID_59_4').change(function(){jQuery('.Block_2-section').show()});
jQuery('#CIVICRM_QFID_60_6').change(function(){jQuery('.Block_2-section').show()});
jQuery('#CIVICRM_QFID_0_8').change(function(){jQuery('.Block_2-section').show()});
</script>
{/literal}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment