mistic100 / mistic100/jQuery-QueryBuilder

Disable 2 filters at the same time

Open
#819 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.7k
Forks
544
PR merge metrics
No merged PRs in 30d

Description

Hello,

I've been looking for information, but I can't find anything about it.

When I choose a filter, it is deactivated and can no longer be used in new rules. If I change to another filter in the same rule, the previous one will be available again in the rest of the rules I have already created. This is normal operation.

What I would like to do is that, when I choose a specific filter in a rule, I deactivate that filter and another that depends on that and the same action in reverse. If you change the filter, activate again the 2 filters that were deactivated.

For example, I have a series of filters but 2 of them, one to search by Name and another to search by Surname cannot coexist together, so if in a rule I choose to search by Name, besides deactivating the filter Name, I should also deactivate the filter Surname and if in the rule with filter by Name I change to another filter, then both filters should be activated again.

Could someone help me since I've been trying to do it for 2 days and I don't know how to do it?

Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how jQuery QueryBuilder disables filters when they are selected in rules, then identify the extension point for related filters. Done means selecting either Name or Surname disables both, and changing that rule re-enables both filters for other rules.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.