OL Learn

Output creation, first page only

I have a file with a variable number of pages per set. I need to add a count to the first page only of each set.

What “Condition” do I need in the output creation to make sure this only goes to the first page? I swear I’ve tried everything from here: http://help.objectiflune.com/en/planetpress-connect-user-guide/2018.1/#designer/Output/Print/Variables_available_in_the_Output.htm

My text for output creation is: ${(‘00000’ + document.sequence.set).slice(-5)}
This adds the sequential number. Just struggling with getting it only on the first page. I’m already annoyed because I know it’s going to be something really obvious…

Found an answer for this.

Instead of doing this in the output creation, I went to the datamapper and created a field, set it to javascript and used:
record.index;