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 
>To: Alex Vergara Gil ; lyx-users  Users ; 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

Reply via email to