M
Mike L
Anyone know how to insert values into form fields using jscript? I've tried
the following:
var formField = XDocument.DOM.selectSingleNode("fieldname");
formField.text = "123";
I've debugged the code and added a watch on variable formField but it always
gets the value null even though it contains a default value.
I don't think i'm referencing the form field correctly but I've also tried:
/my:myFields/my:fieldname - gets an error saying that "my" is not recognised
/myFields/fieldname
//fieldname
/fieldname
../fieldname
.../fieldname
/Main/myFields/fieldname
None of them work and i'm running out of ideas.
the following:
var formField = XDocument.DOM.selectSingleNode("fieldname");
formField.text = "123";
I've debugged the code and added a watch on variable formField but it always
gets the value null even though it contains a default value.
I don't think i'm referencing the form field correctly but I've also tried:
/my:myFields/my:fieldname - gets an error saying that "my" is not recognised
/myFields/fieldname
//fieldname
/fieldname
../fieldname
.../fieldname
/Main/myFields/fieldname
None of them work and i'm running out of ideas.