jt-espace 1 Posted November 5, 2013 Bonjour, Comment rendre un champ de type text non-modifiable (grisé) dans un renderForm ? Dans mon exemple (label Circuit), l'id s'affiche bien mais n'est pas grisé. public function renderForm() { // loads current warehouse if (!($obj = $this->loadObject(true))) return; $this->fields_form = array( 'legend' => array( 'title' => $this->l('Ajout d\'une activité'), 'image' => '../img/admin/bus-icon.png' ), 'input' => array( array( 'type' => 'hidden', 'name' => 'id_address', ), array( 'type' => 'hidden', 'name' => 'id_product', ), array( 'type' => 'text', 'label' => $this->l('Circuit:'), 'name' => 'id_product', ), ... Merci à vous. Share this post Link to post Share on other sites