-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel?
Thanks, Rainer On 22/03/13 14:14, John Kane wrote: > The problem is far beyond my tiny understanding of LyX/LaTeX unfortunately. > Have you tried a > question on StackOverflow? > > > ---------------------------------------------------------------------------------------------------- > > *From:* Alex Vergara Gil <a...@cphr.edu.cu> > *To:* John Kane <jrkrid...@yahoo.ca>; lyx-users Users > <lyx-us...@lists.lyx.org>; > lyx-devel@lists.lyx.org *Sent:* Thursday, March 21, 2013 5:18:53 PM > *Subject:* Re: Creating pdf > forms template > > ----- Original Message ----- > > *From:* John Kane <mailto:jrkrid...@yahoo.ca> *To:* Alex Vergara Gil > <mailto:a...@cphr.edu.cu> > ; lyx-users Users <mailto:lyx-us...@lists.lyx.org> ; lyx-devel@lists.lyx.org > <mailto:lyx-devel@lists.lyx.org> *Sent:* Thursday, March 21, 2013 12:32 PM > *Subject:* Re: > Creating pdf forms template > > It works or at least I managed to type some text into the text box. I made a > couple of > changes to the text which I think makes it a bit more idiomatic in English > (see attached. I > hope you don't mind. > > I spent what seemed like forever installing the blasted insdljs.sty and it > worked. > > For those having the same problem in Ubuntu I 1) created a texmf folder at > root level > following these directions > http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ > > and then following instructions from > http://www.latex-community.org/forum/viewtopic.php?f=5&t=8886 > > 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran > latex acrotex.ins > Reconfigured LyX and everything ran nicely. > > Dear John > > Thanks for your reply and your idiomatic suggestions. Now I notice that it > must be told in the > document that for make it to work the AcroTeX package must be instaled also > (it contains the > insdljs.sty file), this specific package allows javascript code inside a pdf, > so you can > manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if > you run this on > Windows so this should works on every platform. > > The problem is that if you just put > > {this.getField("Escuelat").readonly=false;} > > it works in one way, but when you uncheck the box the linked text field > should become > uneditable and empty. For this I expect that the code > > {this.getField("Escuelat").readonly=!this.getField("Escuelac").checked; > this.getField("Escuelat").value="";} > > shall do the job, but it isn“t. I even made this as a function, but nothing > happened. The rest > of the objects work very nice but this kind of behaviour is critical for the > next step of > creating action buttons. > > Regards > > Alex > > > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRTFzeAAoJENvXNx4PUvmCz1MH+wfO2/Odl37cxml6JWsQSqIQ nw8dUT0BX47xzjmPz/+GTHZNfi56j3rLjluCP0y/gRoH4MZMO3W8WNXf+I1XB8XG H3SyzcXiraOzZid96wUcgVdYm5zczb8lBxq3pQYJ4t1i8/gXFkFKY70S0A7j7Izl O3+U0BAs2g/ZBBEA/BXm5puR7tkPzXofDVxScP7I7GhM9vom1ilawfPeXBvFOQ+y Zu4bDS3YQDRSPF3Hu9G0yuOyj/dOx/TyCbqGU2VO1ltqGGChvJ2KnIHBTnmYfzgb DBmgbsgTNCe7MELB204hV06iPhlX2RV/dObgLJbsHutJHTT/UdLw3mFGfdPi3MQ= =eHnK -----END PGP SIGNATURE-----