Problem to Submit Infopath form with JScript

M

Martin Roelser

Hi,

I have a little Problem with Infopath & Jscript.

I use the following code to submit my form ... this works fine BUT i can't
use values from the active form.

The problem is : how to refer to a field of my form ?

-----------------------
var objStatus = XDocument.DOM.selectSingleNode("../../my:status").text;
var strUrl = "http://192.168.0.1/Production Request Syria/" + objStatus +
"/test.xml";
-----------------------

1. I don't know if ("../../my:status") is the right way to refer. I also
tried many other things but nothing didn't work.

2. Each time I try to take the value or text of the field: status I get an
error: Object expected.

I Hope you can help me and sorry for bad english :)

Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top