I am getting the below error whan trying to access a field on my form.
'XDocument.DOM.selectSingleNode(...)'is null or not an object File:script'js
My namespace is set as...
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-03-24T12:18:15" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"');
my code is...
XDocument.DOM.selectSingleNode( "/dfs:myFields/my:LastName" ).text = " ";
My Datasource looks like this...
myFields
LastName
FirstName
Does anyone see what I am doing wrong...I know it is a simple fix?