on 11-17-2011 5:14 PM
Hi,
in an adobe form the Focus can be set with xfa.host.setFocus("Formfield"). In this case 'Formfield' is a hardcoded form field.
Is it also possible to set the focus dynamic with a string, which contains the fieldname?
e.g.
myField = myNode.value;
var hochkomma = '"';
var Formfield = hochkomma.concat(myField);
var Formfield = Formfield.concat(hochkomma);
xfa.host.setFocus(Formfield);
But this code doesn't work. Where's the problem?
Thx!
Hi Andreas,
try to put Formfield between "", that is :
xfa.host.setFocus("Formfield");
And Formfield has to be the same as the name field, be careful respecting upper/lower case.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.