Jump to content

Add a file input in renderForm method (RESOLVED)


O. Dawson

Recommended Posts

Hello,

I overrided the renderForm method of AdminEmployeesController by adding a new array in the main one $this->fields_form.

array(
  'type' => 'file',
  'class' => 'fixed-width-xl',
  'label' => $this->l('Signature'),
),

 

It works except that my field is readonly and when I click on the button to upload a file, no dialog box appears.

Does some of you have an idea ?

Capture d’écran 2018-03-05 à 14.44.15.png

Edited by O. Dawson
(RESOLVED) (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...