Contact Form 7
How to use a checkbox as a togglestatus for other checkboxes?? (1 post)

  1. DDT
    Posted 5 years ago #


    I like to use one checkbox which would disable other checkboxes??

    now with CF7 i am trying
    [checkbox no_workshop id:no_workshop "no workshops"]
    and i the header i like to use some jquery to check the status of no_workshop and disable other checkboxes

    something like

    if($("no_workshop is selected) {
                $("#workshopsdiv :checkbox:not(:checked)").attr("disabled", "disabled");
            } else {
                $("#workshopsdiv :checkbox").attr("disabled", "");

    or create a toggleStatus function and add an onchange with the checkbox but how???


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic