Donnez vie à vos documents numériques !
 

Répondre à : Exécution de fonction par bouton

abracadabraPDF Forums PDF – Général Exécution de fonction par bouton Répondre à : Exécution de fonction par bouton

#74183
bebarth
Maître des clés

bonjour,
Pour “default”, essaye ça :
for (var i=0; i<this.numFields; i++) {
var nomChamp=this.getNthFieldName(i);
if (nomChamp.indexOf("Q.")==0) {
if (this.getField(nomChamp).type=="text") this.getField(nomChamp).defaultValue="";
else this.getField(nomChamp).value=this.getField(nomChamp).getItemAt(0,false);
}
}
et pour “EditReps” :
for (var i=0; i<this.numFields; i++) {
var nomChamp=this.getNthFieldName(i);
if (this.getField("Menu.5").value!="Off") {
if (nomChamp.indexOf("Q.")!=0) this.getField(nomChamp).readonly=false;
} else {
this.getField(nomChamp).readonly=true;
}
}

Mais là, même ton bouton sera en lecture seule !!! Il faudra l’exclure si tu ne veux pas.
Tu me dis…

@+
😎