abracadabraPDF › Forums › PDF – Général › Valeur de champs sous conditions › Répondre à : Valeur de champs sous conditions
17 juillet 2020 à 18:55
#67887

Maître des clés
bonjour,
En script de touches personnalisé :
Code:
if (event.changeEx== »A ») {
this.getField(« CHAMP1″).value= »AB »;
this.getField(« CHAMP2″).value= »BC »;
} else if (event.changeEx== »B ») {
this.getField(« CHAMP1″).value= »DE »;
this.getField(« CHAMP2″).value= »EF »;
} else {
this.getField(« CHAMP1″).value= » »;
this.getField(« CHAMP2″).value= » »;
}
this.getField(« CHAMP1″).value= »AB »;
this.getField(« CHAMP2″).value= »BC »;
} else if (event.changeEx== »B ») {
this.getField(« CHAMP1″).value= »DE »;
this.getField(« CHAMP2″).value= »EF »;
} else {
this.getField(« CHAMP1″).value= » »;
this.getField(« CHAMP2″).value= » »;
}
Et pour info, en chiffre romain 11 s’écrit XI…@+
:bonjour: