O. Dawson Posted March 5, 2018 Share Posted March 5, 2018 (edited) 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 ? Edited March 5, 2018 by O. Dawson (RESOLVED) (see edit history) Link to comment Share on other sites More sharing options...
O. Dawson Posted March 5, 2018 Author Share Posted March 5, 2018 I forgot the basics... array( 'type' => 'file', 'class' => 'fixed-width-xl', 'label' => $this->l('Signature'), 'name' => 'signature', ), the name property.... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now