hi Agni, thanks for the speedy reply :)
A couple of questions regarding the solution:
quote:
//Get the root node
IXMLDOMNode rootNode = getNode("ROOTNODEXPATH");
In JScript equivalent, would this be something like:
var rootNode = XDocument.DOM.selectSingleNode("/my:myFields");?
quote:
//Get the new PI which points to the new template
string newPI = "PIOFNEWTEMPLATE";
I'm sorry if this is too obvious, but what's PI?
quote:
//Get reference to the Sharepoint Submit connection
DAVAdapter sharePointSubmitConnection = (DAVAdapter)thisXDocument.DataAdapters["SHAREPOINTSUBMITCONNECTIONNAME"];
//Submit new DOM which point to the new template to the Sharepoint
sharePointSubmitConnection.SubmitData(newXMLDOM);
Does this mean that in order for the form to use the new template, it needs to be submitted first to the sharepoint?
So if I put the above code in the event OnLoad, would the form be able to use the new template straight away, Agni?
thanks in advanced :)