Quick links: Content - sections - sub sections
EN FR
Quick Search Advanced search
 
Page

  [Opened] comment créer un champ non saisissable dans un formulaire jform???

Posted by artegenh on 10/17/2008 15:18

je voudrais afficher la réponse d'un calcul dans un champ et rendre ce champ non saisissable, j'ai essayé de mettre

 <input ref="total" disabled="disabled"> // << ça renvoie une erreur.

ou alors faut-il faire ceci dans le template?

 {ctrl_control 'total'....} // , comment faire?

  [Opened] Re: comment créer un champ non saisissable dans un formulaire jform???

Reply #1 Posted by artegenh on 10/17/2008 15:26

ça renvoie l'erreur:

 [exception 803]  attribut disabled non permis sur input (fichier /var/www/html_php5/projets/ttt/tttttg/modules/ffff/forms/qqq.form.xml) /var/www/html_php5/jelix/lib_1.1_a20080506/jelix/forms/jFormsCompiler_jf_1_0.class.php 73

  [Opened] Re: comment créer un champ non saisissable dans un formulaire jform???

Reply #2 Posted by artegenh on 10/20/2008 08:51

bonjour, merci j'ai vu ça samedi en relisant la doc ;-) mais j'ai un autre problème, les attributs type et maxlength ne peuvent pas aller ensemble, comme ceci? :

 <input ref="ref" type="decimal" required="true" maxlength="5">

ça revoie:

 [exception 803]  attribut maxlength non permis sur input (fichier /var/www/#/#/#/#/modules/#/forms/#.form.xml) /var/www/html_php5/jelix/...jFormsCompiler_jf_1_0.class.php 110

merci

 
Page
  1. comment créer un champ non saisissable dans un formulaire jform???