Field and Variant conditions

Created on 8 July 2023, over 1 year ago
Updated 27 October 2023, about 1 year ago

Problem/Motivation

It should be possible to add #states to settingTypes. So you can hide or show specific settings only if another setting has a specific value.

Proposed resolution

A setting has a new key "states" which maps to form states.
Each state can either map to a variant or to a different setting.


    select_states:
      type: select
      label: Select States
      states:
        visible:
          -
            variant: blue
          -
            setting: select_config
            value: key2
      options:
        key: value
        key2: value2
Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Christian.wiedemann

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024