- π§πͺBelgium beerendlauwers
Issue is still present. @AkshayAdhav you probably did not test with a patch for 2269823, e.g. https://www.drupal.org/files/issues/2023-08-29/core-checkbox-groups-10.1... β .
To properly test it, you'll have to create your own FieldWidget that extends OptionsButtonsWidget, for example:
namespace Drupal\my_example_module\Plugin\Field\FieldWidget; use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\Core\Field\Plugin\Field\FieldWidget\OptionsButtonsWidget; /** * Plugin implementation of the 'options_buttons' widget. * * @FieldWidget( * id = "example_options_buttons", * label = @Translation("Check boxes/radio buttons - With Groups"), * field_types = { * "boolean", * "entity_reference", * "list_integer", * "list_float", * "list_string", * }, * multiple_values = TRUE * ) */ class ExampleOptionsButtonsWidget extends OptionsButtonsWidget { protected function getOptions(FieldableEntityInterface $entity) { return [ 'Top level label 1' => [ 1 => 'Option one', 2 => 'Option two', ], 'Top level label 2' => [ 3 => 'Option three', 4 => 'Option four', ], ]; } }
Select the "Check boxes/radio buttons - With Groups" widget in the form display configuration. Trying it without a patch for 2269823 results in an error. With a patch, you'll see the behaviour displayed in the original issue description.
- Status changed to Closed: cannot reproduce
4 months ago 1:08am 6 February 2024 - π¨πSwitzerland saschaeggi Zurich
Closing this again as it required a core patch to be applied. Once merged we can reopen it.
- Status changed to Active
about 2 months ago 2:05pm 22 April 2024 - π«π·France marabak
The same issue is happening when enabling grouped checkboxes β module.
The input tag is hidden by css. - Status changed to Closed: duplicate
about 2 months ago 2:27pm 22 April 2024 - π¨πSwitzerland saschaeggi Zurich
Closing as duplicate of π Clientside validation breaks checkbox toggle Active
Can you check if the solution there will fix your issue as well?
- π«π·France marabak
Yes π Clientside validation breaks checkbox toggle Active is solving the issue for grouped checkboxes β