Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

referencing table rows question

Avatar

Level 4
I'm getting a malformed SOM expression error from the following statement:

for(j=0; j <3; j++)

{xfa.resolveNode("form1.Table1.Row1[j].Cell3").mandatory = "disabled";}}



I figure I'm not referencing the index of the table row correctly but I'm not finding any examples to mimic. Any help greatly appreciated!
1 Reply

Avatar

Level 10
The j cannot be resolved in that expression becuae it is enclosed in the string. Write the expression this way:



xfa.resolveNode("form1.Table1.Row1[" + j + "].Cell3").mandatory = "disabled

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now