Weirdly on some of my textfields I actually can add code and it sticks but I can not figure out any pattern why that is. Is this a bug or are there limitiations on when it is possible to add a custom validation script on a textfield?
(I am setting up my textfields in InDesign if that is of relevance.)
Copy link to clipboard
I figured it out.
Acroabt does not like it when textfields are stacked apparently. The pattern I missed first: I was only able to add custom validation scripts to the textfield on top of my stack. For context: I have a stack of identically placed and initially hidden textfields and I am changing the visibility of them via buttons.
The solution: Exporting with Acrobat layers directly from InDesign, since each of my textfields is on a layer of its own anyways. In Acrobat I am switch through the visibillity of the layers putting the one I need to attach the script to on top of the stack.