Avatar

Level 10

Hi,

I think you will need a script in the layout:ready event of the field on the Master Page, something like;

var result

var page = xfa.layout.page(this)

var rows = form1.Page1.Table1.resolveNodes("Row1[*]");

for (var i = 0; i < rows.length; i++) {

    var row = rows.item(i);

    if (xfa.layout.page(row) > page) {

        break;

    }

    result = row.resolveNode("TextField1").rawValue;

}

this.rawValue = result;

This script will assign the last value of TextField1 on the same page as the current master page occurrence of the field with the script.  So you will need to change form1.Page1.Table1.TextField1 to match your form.

Regards

Bruce