Issue Bug Closed

#71679FormEngine TextElement : add attribute 'data-formengine-input-name' to be able to use select wizard

BIDAU Ismaël 11/19/15, 12:13 updated 10/02/18, 11:26

Description

I have a text field define like this

'myField' => array (
            'label' => 'myLabel',
            'config' => array (
                'type' => 'text',
                'wizards' => array (
                    'select' => array (
                        'type' => 'select',
                        'items' => array (
                            array ('option 1', 'text 1'),
                            array ('option 2', 'text2'),
                            array ('option 3', 'text3'),
                        )
                    )
                )
            )
        ),

The wizard doesn’t work anymore (work for ‘type’ => ‘input’)

In typo3_src-7.6.0/typo3/sysext/backend/Classes/Form/Element/TextElement.php
line 145
add :
$attributes[‘data-formengine-input-name’] = htmlspecialchars($parameterArray[‘itemFormElName’]);

solve the problem

Reviews 2