No, It is not necessary to substitute any field name or form name & etc in the code. But It is necessary to give the “xpath” of the test field (“isso_name”) for the “selectSingleNode()” method.
And I think you followed the code which I mentioned in "C#" and the "xpath" of the text field "Name" which I used in my example. It is wrong.
You written the code in "jscript" and I hope, you created the "isso_name" field just under the “myFields” (myFields->isso_name) in the data source.Then you have to mention the “xpath” for that field as given below:
XDocument.DOM.selectSingleNode (“my:myFields/my:isso_name”).text=temp;
If not, please mention the hierarchy of the “isso_name” field where you created, to know the correct “xpath” of that field.
Do you have the plan to populate the "isso_name" field with email id? because in Jscript you can't populate the user name. That is "System.Environment.UserName" does not work.
Note: you have to use "XDocument" instead of "thisXDocument" in the Jscript code.
thisXDocument is for C#.
Uma Karnati
InfoPath Dev India