Skip Navigation

[Resolved] Checkbox unchecked

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Shane 6 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1101740
Pic3.png
Pic2.png
Pic1.png

Hello,

I would like to uncheck a checkbox after clicking on another checkbox.
In (Pic1) I click on the checkbox ""Kunden-/marktorientierte Prozesse"" and 3 further checkboxes become visible. If I click on one of these 3 checkboxes (Pic2 - "Vertrieb"), I would like the checkbox "Kunden-/marktorientierte Prozesse" to be unchecked (Pic3).

I already tried it with the following code, unfortunately it didn't work:

 $("input[value='Vertrieb']").click(function(e)
   {
       if($(this).prop("checked") == true)
       { 
            $("Kunden-/Marktorientierte Prozesse").prop("checked")= false;
      }
  });

Is there any way?
Thanks.

#1101797

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rafael,

Thank you for contacting our support forum.

Is this a checkbox group or is it a single checkbox ?

Either the way the best solution here is to use a radio button group instead of a checkbox group as the radio button group functions exactly like this.

Thanks,
Shane

#1102375

Hello,

"Kunden-/marktorientierte Prozesse" is a single checkbox and the checkboxes "Marketing", "Vertrieb", "Kundendienst" is a checkbox group.
The radio buttons don't bring me much in this case, because I would like to check all 3 checkboxes. I would like the checkbox "Kunden-/marktorientierte Prozesse" to be unchecked as soon as I click one of the three checkboxes "Marketing", "Vertrieb", "Kundendienst".

Link to the Page: hidden link

Thanks.

#1102509

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rafael,

So what you want to do is to limit the choices of the checkboxes to only 3 correct?

Thanks,
Shane

#1105446

Exactly that kind. The best thing would be, for example, if I click on "Vertrieb" or one of the other checkboxes that the check mark from "Kunden-/marktorientierte Prozesse" is deactivated.
If that's how it goes. Alternatively it would be to limit it to the 3 checkboxes and that by "Kunden-/marktorientierte Prozesse" the checkboxes only unfold/become visible.

Thanks.

Rafael

#1105546

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rafael,

Not sure how much assistance I can provide here but I was able to find an example of what you want .
hidden link

What you can do is to try the JS code in the link above and adopt it for your fields .

Thanks,
Shane