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



Level 5

Good day,


I have a form which has the initial appearance as (1) table. The header of my initial "table" is numbered "1".  I have buttons where you can add and subtract additional tables.  The additional tables are numbered 2, 3, 4, etc. when you click the add button and are numbered correctly when you subtract a table.  I also have a reset button which removes all tables except for the initial table.  The problem is that when it resets, the number "1" of the initial "table" disappears.  Then when I click the add button, the tables are not numbered.   In the reset button, I have the following script:

 if("WARNING: You are about to remove all records and entries. Do you want to proceed?", "Reset the form", 2,2) == 4){"All entries and records have been removed.");
xfa.resolveNode("form1.howobtainedsubform.cardssubform.CARDS._Table1").setInstances(1);"<form1/>", true, true);
else {"No entries or records were removed.");


Any help will be appreciated.

2 Replies


Level 5

this is what I have in the table row:

form1.howobtainedsubform.cardssubform.CARDS.Table1.HeaderRowrecordnum.recordnum::calculate - (FormCalc, client)

this.rawValue = this.parent.parent.instanceIndex +1;


Level 5

I’m not too familiar with FormCalc scripting, but it seems like if you switch to JavaScript, it might work.