Control Script and also add a display of an incremental number

I have a project where I clone Section 1 based on a field in the data. I also need to add a text box that shows an increment of a number that is also in the data field.

Example Fields:

StateNum = 34

Total= 17

This would represent 17 total pages with the first page text box as 34, second page text box 35, third page text box 36.

I have a control script that is pulling the correct amount of pages, but I cannot get the text box to show the correct number because I’m assuming the control script is executing first and I am not able to show results in a selector from the Control Script. The text box is showing 51 on all 17 pages, which is the correct ending number but isn’t looping and showing the numbers in between.

The incrementation would have to be done from a normal script. Each time it finds your selector (let’s say the a class setup for your text box object) it will increment a globlal variable which you will show in your text box.

I do have another script that is set up and incrementing, but I am only showing the last result of the for loop. In this case, 51 for every page.

To help you properly we would need to see the Template and reproduce the issue. I suggest you open a technical support call at 1-866-348-5863 or through our website.