How to use JavaScript to add an action in a push button?
RéponduI want to set text in a Field Text using a push button.
I try to code javascript in widget events options, but it doesn't work.
I wrote this in the action script:
const Node = document.getElementById("txtTest");
Node.textContent += "Welcome";
I really apreciate your help guys =D.
-
Commentaire officiel
Hello Daryan,
Thank you for letting us know you need help with JavaScript to add an action in a push button.
Please note that PDF Suite allows you to use all capabilities specified in the JavaScript™ for Acrobat® API Reference
This gives you an extensive object model. This may be different from JavaScript as it is used in browsers.You need to contact a JavaScript developer for more information on code implementation, unfortunately, we don't provide support for code writing.
Regards,
PDF Suite team -
OK Megan!! Thanks so much!!
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
2 commentaires