Skip to content

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

Open
@spetsmash

Description

@spetsmash

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: improveImprove existing functionality to fit new requirements

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions