XDP Form - Referencing fields within dynamic rows of a Table
I need JavaScript help with field referencing within a dynamically generated table row.
I have the following code which only triggers within the first row, which is the only row in the table prior to the user generating additional rows.
form1.Page1.SubChecklist.Table.Detail.ParaNum::ready:layout - (JavaScript, client)
if (this.DDLAlignment.rawValue == "No" || this.DDLPrompts.rawValue == "No" || this.DDLPunctuation.rawValue == "No" || this.DDLSpelling.rawValue == "No" || this.DDLWidow.rawValue == "No" || this.DDLProgram.rawValue == "No" || this.DDLIVData.rawValue == "No" || this.DDLNoPub.rawValue == "No"){
if (xfa.host.version <8) {
this.fontColor = "249, 11, 8";
}
else {
var CaptionColorBackup = this.resolveNode("$").caption.font.fill.color.value;
this.font.fill.color.value = "249, 11, 8";
this.caption.font.fill.color.value = CaptionColorBackup;
}
}
The above code works to change the ParaNum field value to red when there is any of the DDLs that have a value of "No".
But ONLY on the initial row. Not for any dynamically generated rows.
I asked about this in another post, however, it may not have been clear as to what I was attempting to do.
Please assist with the coding above, I am aware that instanceManager and dynamic rows changes the underlying row names, I just cannot figure out how to address it within the code above.
Thank you in advance...