Set value in repeating section

W

WC

I have textbox1 in a repeating section and a non-repeating textbox2. Through
OnAfterChange, I want to append textbox2's value after the textbox1's value.
For example, "text1 text2". I haven't been successful setting a rule in
textbox1 as I get this error:
The number of calls to the OnAfterChange event for a single update in the
data exceeded the maximum limit.

I've tried adding code to the OnAfterChange but to no avail...same error
message. I would greatly appreciate any guidance.

function msoxd_my_frmHeading::OnAfterChange(eventObj)
{
var oHeading =
eventObj.Source.parentNode.selectSingleNode("../my:frmHeading")
var oAuthor = XDocument.DOM.selectSingleNode("//my:myFields/my:frmAuthor")
oHeading.text += " (" + oAuthor.text + ")";
}
 

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