abracadabraPDF › Forums › PDF – Général › Exportation d’un formulaire en PDF non modifiable. – RÉSOLU › Répondre à : Exportation d’un formulaire en PDF non modifiable. – RÉSOLU
7 novembre 2017 à 19:08
#55782
Maître des clés
Est il possible par contre d’exclure certains champs afin que ceux-ci soient remplissables même après envoi ?
Trop facile, il suffit d’allonger le script avec l’action inverse :
Code:
// Verrouiller tous les champs
for (var i=0; i var fname = this.getNthFieldName(i);
var f = this.getField(fname);
f.readonly = true;
}
// déverrouiller certains champs
this.getField(« CHAMP1 »).readonly = false;
this.getField(« CHAMP2 »).readonly = false;
this.getField(« CHAMP3 »).readonly = false;
// etc.
for (var i=0; i
var f = this.getField(fname);
f.readonly = true;
}
// déverrouiller certains champs
this.getField(« CHAMP1 »).readonly = false;
this.getField(« CHAMP2 »).readonly = false;
this.getField(« CHAMP3 »).readonly = false;
// etc.
:Smiley15:
