hi!
i got the same problem, but it seems my scripting skills are too poor to get this thing working. - how should the code be called? (onAfterChange ?)
currently i got:
function msoxd_my_packageTitle::OnBeforeChange(eventObj) {
var list = XDocument.DOM.selectNodes( "//my:workPackages/my:section/my:packageTitle" ); // <- the repeating fields
var str = "";
while( node = list.nextNode() ) {
str += node.text + "; "; }
var target = XDocument.DOM.selectSingleNode( "//my:wpDescriptions" ); // <- the field where the condensed string should go
target.text = str;
}
and i get the error:
InfoPath cannot complete this action because of an error in the form's code.
The following error occurred:
InfoPath cannot update the data because the form is currently read-only.
File:script.js
Line: 35
... can somebody help me?