Donnez vie à vos documents numériques !
 

Répondre à : Propriété d’un champ

abracadabraPDF Forums PDF – Général Propriété d’un champ Répondre à : Propriété d’un champ

#73969
michel c.
Participant

Je viens de réussir :

function CoulQ() {

var Coul=this.getField("Menu.3").value;

if (Coul=="Aucune") {this.getField("question.").fillColor = color.transparent;
for (var i=2 ; i<6 ; i++) {this.getField(i+"question.").fillColor = color.transparent;}
}

else if (Coul=="Jaune") {this.getField("question.").fillColor = color.yellow;
for (var i=2 ; i<6 ; i++) {this.getField(i+"question.").fillColor = color.yellow;}
}
else if (Coul=="Vert") {this.getField("question.").fillColor = color.green;
for (var i=2 ; i<6 ; i++) {this.getField(i+"question.").fillColor = color.green;}
}

else if (Coul=="Bleu") {this.getField("question.").fillColor = color.blue;
for (var i=2 ; i<6 ; i++) {this.getField(i+"question.").fillColor = color.blue;}
}

else if (Coul=="Rouge") {this.getField("question.").fillColor = color.red;
for (var i=2 ; i<6 ; i++) {this.getField(i+"question.").fillColor = color.red;}
}

}

Attachments:
You must be logged in to view attached files.