Skip to content
This repository was archived by the owner on Jul 10, 2020. It is now read-only.
This repository was archived by the owner on Jul 10, 2020. It is now read-only.

Using 'inline' => 'true' and 'inline' => 'false' at the same form for *radio inputs*. #175

Description

@marciodojr

Could someone check if it is possible to use inline radio inputs and no inline radio inputs at the same form?

For example:

// MyFormClass
->add([
    'name' => 'optInput1',
    'type' => 'radio',
    'options' => [
        'label' => 'Opt1',
        'value_options' => $options1,
        'inline' => true,
    ]
]);

->add([
    'name' => 'optInput2',
    'type' => 'radio',
    'options' => [
        'label' => 'Opt2',
        'value_options' => $options2,
        'inline' => false,
    ]
]);

In my view file

echo $this->formRow($form->get('optInput1'));
echo $this->formRow($form->get('optInput2'));

The behavior should be like

Opt1
( ) label1 ( ) label2 ( ) label3 () ...

Opt2
( ) label1
( ) label2
( ) label3

But the inputs are displayed as inline inputs.

Opt1
( ) label1 ( ) label2 ( ) label3 () ...

Opt2
( ) label1 ( ) label2 ( ) label3 () ...

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions