abracadabraPDF › Forums › PDF – Général › Raz et remplissage automatique › Répondre à : Raz et remplissage automatique
18 janvier 2023 à 09:06
#72424
Merlin
Maître des clés
for (var i = 1 ; i<50 ; i++) {
for (var f = 0 ; f<50 ; f++) {
if
(this.getField("Q."+i +"."+f) != null && this.getField("Q."+i
+"."+f).type != "combobox") {this.getField("Q."+i +"."+f).value = "";}
if
(this.getField("Q."+i +"."+f) != null && this.getField("Q."+i
+"."+f).type == "combobox") {this.resetForm([("Q."+i +"."+f)]);}
Je ne comprend pas ce script inutilement compliqué qui pourrait être remplacé plus simplement par :
this.resetForm(["Q"]);