abracadabraPDF › Forums › PDF – Général › code javascript existant mais impossible de le modifier › Répondre à : code javascript existant mais impossible de le modifier

En tout cas tu devrais t’intéresser à la « Convention de dénomination des champs de formulaire » qui te ferait gagner un temps fou.
Par exemple tu pourrais remplacer :
this.getField(« Text61.0.0 »).fillColor = color.black;
this.getField(« Text61.0.1 »).fillColor = color.black;
this.getField(« Text61.0.2 »).fillColor = color.black;
this.getField(« Text61.0.3 »).fillColor = color.black;
this.getField(« Text61.0.4 »).fillColor = color.black;
this.getField(« Text61.1.0 »).fillColor = color.black;
this.getField(« Text61.1.1 »).fillColor = color.black;
this.getField(« Text61.1.2 »).fillColor = color.black;
this.getField(« Text61.1.3 »).fillColor = color.black;
this.getField(« Text61.1.4 »).fillColor = color.black;
Par cette seule ligne :
this.getField(« Text61« ).fillColor = color.black;