Anyone know why this not working?
if(Table1.Row1.TextField1.rawValue !== null){
xfa.resolveNode("Table1.Row1[1].TextField1").rawValue = Table1.Row1.TextField1.rawValue
}
else if
(xfa.resolveNode("Table1.Row1[1].TextField1").rawValue !== null)
xfa.resolveNode("Table1.Row1[2].TextField1").rawValue = Table1.Row1.TextField1.rawValue
When I click a button I want the value from field1 row 1 to be entered in field 1 row 2. That works.
And if field 1 row 2 to is already filled I want the value from field1 to be entered in field1 row 3 and so on.
/ Anders
Hi Anders,
This is an example where FormCalc is easier, as you do not need to resolve the nodes (because FormCalc handle [1]).
if (Table1.Row1[0].TextField1 ne null) then
Table1.Row1[1].TextField1 = Table1.Row1[0].TextField1
}
elseif (Table1.Row1[1].TextField1 ne null) then
Table1.Row1[2].TextField1 = Table1.Row1[1].TextField1
endif
Hope that helps,
Niall
North America
Europe, Middle East and Africa
Asia Pacific