I'll consider this a bug until proven otherwise. I'm like 80% sure it's not what I wrote in code.
I have a stamp, that automatically fetches the a number from a form and the page number.
E.g., SK{Form Number}-{Page Number}
First time I add the stamp on a page, via the Stamp Tool, everything is hunky-dory. The numbers show up.
Add it on another page, still works.
If I add it a second time on a page that already has it, it doesn't show up properly.
Anytime after that point, still using the Stamp Tool , it doesn't work as intended.
If I use a scripted button, none of the stamp work.