- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
I don't think checkboxes are a very intuiative way for the user to add rows.
That said, the main issue is that you are not specifying which instance of MyRow you want to set the value of checkboxValue. So this line:
xfa.form.MyForm.page1.MyTable.MyRow.checkboxValue.rawValue = "CheckBox 1"
Would become:
var i = page1.MyTable._MyRow.count - 1;
xfa.resolveNode("page1.MyTable.MyRow[" + i + "]").checkboxValue.rawValue = "CheckBox 1";
Also I would place the script in the click event of the checkbox, as the change event uses "xfa.event.newText". The click event uses "this.rawValue" as you have it.
Hope that helps,
Niall