Skip to content
This repository has been 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

Open
marciodojr opened this issue May 29, 2016 · 1 comment
Assignees
Labels

Comments

@marciodojr
Copy link

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 () ...

@neilime neilime self-assigned this Sep 19, 2016
@neilime neilime added the bug label Oct 17, 2016
@neilime
Copy link
Owner

neilime commented Oct 17, 2016

Hi,

The very last version should fix it.
Please tell me if it works for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants