Copy link to clipboard
Copied
Hello,
I have several fields and buttons of my PDF form as described here:
Since each button has a fixed position on the form, is it possible to run a script inside a button which enables some other buttons or fields to jump to a different position within the form when you press the button? For example the position of my button or field is [400, 442, 412, 430] and I want it to appear on [400, 427, 412, 415] instead by pressing another button.
Many thanks in advance!
You can change the position of a field by setting its rect property.
For example:
this.getField("Text1").rect = [400, 427, 412, 415];
Copy link to clipboard
Copied
You can change the position of a field by setting its rect property.
For example:
this.getField("Text1").rect = [400, 427, 412, 415];
Copy link to clipboard
Copied
This has worked, thank you!