Using Jscript I can populate a field value based off a value into another field. When using Repeating tables I can only populate the first row in the table. I am assuming that I have to loop through the rows but am having issues.
I have a field where a user enters their name "EnterName" and then I want to populated the "grp_field" that is within a repeating table.
The code (feeble code attempt) below will work for the top field but not any additional rows.
{
var EnterName = XDocument.DOM.selectSingleNode("//my:EnterName");
var SetField6 = XDocument.DOM.selectSingleNode("//my:group/my:small_grp/my:grp_field");
SetField6.text = EnterName.text
}
Please let me know if you have any ideas!
Thanks,
Brian