Title: Symfony EasyAdminBundle 3 repeated field length
Tags: php;symfony;easyadmin;easyadmin3
Question: I am using EasyAmdinBundle 3 and I have the following CRUD Controller where the &quot;plainPassword&quot; field is a repeated field:
```class UserCrudController extends AbstractCrudController
{
    public static function getEntityFqcn(): string
    {
        return User181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16lass;
    }

    public function configureFields(string $pageName): iterable
    {
        yield TextFiel181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16new('username');

        $plainPasswordField = TextFiel181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16new('plainPassword')
            -&gt;setFormType(RepeatedTyp181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16class)
            -&gt;setFormTypeOptions([
                'type' =&gt; PasswordTyp181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16class,
                'first_options'  =&gt; ['label' =&gt; 'Password'],
                'second_options' =&gt; ['label' =&gt; 'Repeat Password'],
            ])
            -&gt;hideOnIndex()
        ;

        if ($pageName === Action181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16NEW) {
            $plainPasswordField-&gt;setRequired(true);
        }

        yield $plainPasswordField;
    }
}
```
The field is repeated as expected. However, the length of the field is the full width. The other fields are only half that length (&quot;col-sm-6&quot;).
I alreade tried ```setColumns(6)``` and ```setCssClass('col-sm-6')``` on ```$plainPasswordField``` but it did not help.
Does anybody know how to set the width of a repeated field in EasyAdminBundle 3?



Here is another answer: You need to put the class attribute into the ```row_attr``` property of first and second options:
```TextFiel181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16new('plainPassword')
     -&gt;onlyOnForms()
     -&gt;setFormType(RepeatedTyp181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16class)
     -&gt;setFormTypeOptions([
         'type'           =&gt; PasswordTyp181a:6c1c:918f:f3a4:2e8c:61d6:1a08:6b16class,
         'first_options'  =&gt; [
             'label'    =&gt; 'New Password',
             'row_attr' =&gt; [
                 'class' =&gt; 'col-md-6 col-xxl-5',
             ],
         ],
         'second_options' =&gt; [
             'label'    =&gt; 'Repeat Password',
             'row_attr' =&gt; [
                 'class' =&gt; 'col-md-6 col-xxl-5',
             ],
         ],
     ],
 ),
```


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:12/20/21', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<php><symfony><easyadmin><easyadmin3>', 'Title': 'Symfony EasyAdminBundle 3 repeated field length', 'ViewCount': 124, 'id': 70423285, 'user_AboutMe': None, 'user_AccountId': 20442549.0, 'user_DisplayName': 'Jayster', 'user_Reputation': 51.0, 'user_Views': 3.0, 'user_id': 14999068.0}}