Donnez vie à vos documents numériques !
 

Répondre à : Léger bug sur mon formulaire

abracadabraPDF Forums PDF – Général Léger bug sur mon formulaire Répondre à : Léger bug sur mon formulaire

#74835
michel c.
Participant

J’ai trouvé avant de dormir…

J’ai modifié la dernière ligne de cette partie du script Raz :

if (this.getField(nomChamp).type=="text") {this.getField(nomChamp).value="";}
if ((this.getField(nomChamp).type=="checkbox" || this.getField(nomChamp).type=="radiobutton") && this.getField(nomChamp).value=="undefined") this.getField(nomChamp).value="Off";
else {this.getField(nomChamp).value=this.getField(nomChamp).getItemAt(0,false);}

comme ceci

if (this.getField(nomChamp).type=="text") {this.getField(nomChamp).value="";}
if ((this.getField(nomChamp).type=="checkbox" || this.getField(nomChamp).type=="radiobutton") && this.getField(nomChamp).value=="undefined") this.getField(nomChamp).value="Off";
if (this.getField(nomChamp).type=="dropdown") {this.getField(nomChamp).value=this.getField(nomChamp).getItemAt(0,false);}