Donnez vie à vos documents numériques !
 

Répondre à : Cases qui se cochent automatiquement suivant le résultat d’un champ

abracadabraPDF Forums PDF – Général Cases qui se cochent automatiquement suivant le résultat d’un champ Répondre à : Cases qui se cochent automatiquement suivant le résultat d’un champ

#56459
kokoberlingo
Participant

Merci Merlin ! J’ai trouvé grâce au forum.
Voici le script du champ total :

a = 1*this.getField(« 01 »).value;
b = 1*this.getField(« 02 »).value;
c = 1*this.getField(« 03 »).value;
d = 1*this.getField(« 04 »).value;
e = 1*this.getField(« 05 »).value;
f = 1*this.getField(« 06 »).value;
g = 1*this.getField(« 07 »).value;
h = 1*this.getField(« 08 »).value;
i = 1*this.getField(« 09 »).value;
j = 1*this.getField(« 10 »).value;
k = 1*this.getField(« 11 »).value;
l = 1*this.getField(« 12 »).value;

somtotal = a+b+c+d+e+f+g+h+i+j+k+l;
this.event.value = somtotal;

total = somtotal/12;
this.event.value = total;

if (total > 9.99)
{
this.getField(« plus »).display = display.visible;
this.getField(« moins »).display = display.hidden;
}

if (total < 9.99)
{
this.getField(« moins »).display = display.visible;
this.getField(« plus »).display = display.hidden;
}

Les champs moins et plus étant un bloc texte avec une croix à l’intérieur
Encore merci Merlin pour ta disponibilité sans faille et merci à tous

[attachment deleted by admin]