Easy "one of" multiple value field state condition

Created on 5 August 2024, 3 months ago
Updated 30 August 2024, 3 months ago

Problem/Motivation

A client has used the conditional field logic successfully for several years. They just requested that the "value of" condition be expanded to "one of" so that it could match against one of a range of items.

I tried doing the "Pattern" option and did *partialstring* but it was unreliable, and also not intuitive for less technically savvy content staff.

Steps to reproduce

Have multiple fields on a form, including a text field, a checkbox, and a radio (or similar multi-value field) with multiple items.
Add conditional logic on the text field.
Add a "visible" state.
Make the state require all options present.
Add a condition that looks for the checkbox field to be checked.
Add a condition that allows the radio field to be one of a subset of items.

Proposed resolution

Either extend the existing "Value of" condition to allow multiple selections, similar to a tag autocomplete field, or add another "One of" condition that can select multiple values.

Remaining tasks

Work out the best approach.

User interface changes

It is possible to easily select multiple items (a subset) from the available options on a multi-value field when adding a state condition for a field.

API changes

TBD

Data model changes

TBD

✨ Feature request
Status

Active

Version

6.3

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

Comments & Activities

Production build 0.71.5 2024