Jump to content

HelperForm input tag 'empty_message'


pavelnichita

Recommended Posts

First of all, I'm new to prestashop development and php in general, but here is a problem that I stumbled upon. I want to create an ordenary input tag with HelperForm, sow far sow good, but I alwas want to add an placeholder for the input, in PrestaShop HelperForm documentation it says

 

 ['empty_message'] => $this->l('To be displayed when the field is empty'),

 

The problem is, it doesn't display a thing, here's my input tag code:

 

$fields_form[0]['form'] = array(
            'legend' => array(
                'title' => $this->l('Settings'),
            ),
                 array(
                    'type' => 'text',
                    'label' => $this->l('TEST value'),
                    'name' => 'MYMODULE_TEST',
                    'size' => 40,
                    'required' => false,

                   'empty_message' => $this->l('Has no UUID')
                )
            ),
            'submit' => array(
                'title' => $this->l('Save'),
                'class' => 'button'
            ),
        );

 

 

Thanks.

Edited by pavelnichita (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...