Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable/remove field/'+' sign to add new rule based on condition #203

Open
spetsmash opened this issue Apr 24, 2020 · 1 comment
Open

Disable/remove field/'+' sign to add new rule based on condition #203

spetsmash opened this issue Apr 24, 2020 · 1 comment
Labels
Milestone

Comments

@spetsmash
Copy link
Contributor

Hello.

Looking for a solution for !group->subfields.

Is there any way to disable field:

  • based on already selected items

Fro example:
personal: { label: 'Personal Data', tooltip: 'Group of fields', type: '!struct', subfields: { personalStatistics: { label: 'Current Balance', type: '!group', subfields: { gender: { label: 'Gender', type: 'text', valueSources: ['value'], }, country: { label: 'Currency', type: 'select', valueSources: ['value'], operators: ['select_equals'], listValues: [ { value: '50', title: 'USA' }, ], },

If I choose gender, can I make impossible for user to choose country? And vise versa.

  • is it possible to disable one field based on condition (validation for example)?
    And I have seen in code that disabled property is passing to widget not from field, but for whole query builder. For instance it is possible to disable by setting immutableValuesMode in setting.
    But can it be done to one single field?

Thank you in advance

@danyrojj
Copy link
Contributor

hey @spetsmash did u manage to achieve this eventually?

@ukrbublik ukrbublik added this to the Dynamic milestone Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants