flutter-form-builder-ecosystem / flutter-form-builder-ecosystem/flutter_form_builder

FormBuilderCheckboxGroup: enable/disable only one field of the group

Open
#1,470 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
1.6k
Forks
561
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Package/Plugin version

9.5.0

### What you'd like to happen

The FormBuilderCheckboxGroup enable field is global and enable/disable all the options of the group.

I have this form when the user can select which channels he can be notified:

Image

Let's say I'd like to disable the SMS option if the user has not configured his phone number.

It would be great if the enable field is a List of boolean instead of a simple boolean, so we can customize which field of the group is editable.

Same thing for FormBuilderRadioGroup I believe.

### Alternatives you've considered

_No response_

### Aditional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.