Hi,
I create scripts Objects for a form and it works.
I create scripts Objects for an other one and it doesn't work, however it is the same Objects.
In my subform I click on Insert Script Object and rename it "format". I create two functions :
function test(){
xfa.host.messageBox("hello");
}
and
function minMajLogin(tfield){ //(Met les deux premières lettres du login en majuscules et le reste en minuscules)
xfa.host.messageBox("hop");
var chaine;
var majuscule;
chaine = tfield.rawValue.toLowerCase();
majuscule = chaine.substr(0,2);
majuscule = majuscule.toUpperCase();
chaine = chaine.substr(2,chaine.length);
tfield.rawValue = chaine;
}
I call them with : format.test(); and format.minMajLogin(this);
My form is a dynamic pdf form, the language is javascript and it runs at client.
Can you help me ?
Thank You