We've seen previously how we can add some forms into a PDF file. We have already shown how it was possible to add some JavaScript to display some information when the file is opened in the viewer. JavaScript can be used to add interaction in the PDF too. Many things could be done using JavaScript, such as video controls or 3D modeling and viewing. But as Scribus is a layout software it won't be useful to add all this.
In Scribus, it will be more interesting to define simple actions, such as form field calculations and data transfer by e-mail, or with any kind of server-side language connection like PHP that could add data to a MySQL database.
Teaching these languages is out of the scope of this book. In the following example, we will just show you some tips on how to implement them in Scribus. But the learning will be long if you don't know them yet. Just do some research on the Internet with keywords, such as PHP and JavaScript, and you'll find many websites or books to...