Jump to content

Uncheck (or Ignore) multiple criteria checkboxes conditionally


Recommended Posts

I have a tabular report that uses a search form. "Field 1" consists of 10 multiple criteria that are all checkboxes. 

Following that is another single checkbox field, and three text fields. So let's call that 5 fields total (Field 1 includes all 10 multiple criteria checkboxes).

What I want to do is this:

When Field 2, 3, 4, or 5 is not blank (or is checked), uncheck all the criteria checkboxes in Field 1. Or just "ignore" Field 1.

(I found a couple previous posts describing checkbox unchecking, but not with multiple criteria, and they're different situations).

Any help would be greatly appreciated! Thanks.

Link to comment
Share on other sites

In lieu of the above, a button (or piece of text etc) that performs the function of "Check All / Uncheck All" would also work.

I've tried the code here in various iterations: https://webdevdoor.com/javascript-ajax/javascript-function-check-uncheck-checkboxes but can't get it to work, mainly because I have a poor understanding of how to adjust and implement it, I'm mostly javascript illiterate.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...