abracadabraPDF › Forums › PDF – Général › Conditions sur un champ texte › Répondre à : Conditions sur un champ texte
9 mars 2018 à 11:17
#63462

Maître des clés
bonjour,
A mettre en script de calcul :
Code:
var boutonRadio=this.getField(“RADIO1”).value;
var totalOption=this.getField(“total option”).value;
switch (boutonRadio) {
case 2 :
var remise=5;
break;
case 3 :
var remise=10;
break;
case 4 :
var remise=15;
break;
default:
var remise=0;
}
this.event.target.value= totalOption-(totalOption*remise/100);
var totalOption=this.getField(“total option”).value;
switch (boutonRadio) {
case 2 :
var remise=5;
break;
case 3 :
var remise=10;
break;
case 4 :
var remise=15;
break;
default:
var remise=0;
}
this.event.target.value= totalOption-(totalOption*remise/100);
@+
:bonjour: