Guest User

Untitled

a guest
Jan 21st, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{hyperref}
  3. begin{document}
  4. begin{Form}
  5. PushButton[
  6. name =switch,
  7. onclick= {%
  8. var test = this.getField("test");
  9. if (test.display == display.visible) {
  10. test.display = display.hidden;
  11. } else {
  12. test.display = display.visible;
  13. }
  14. }
  15. ]{Switch visibility} \
  16.  
  17. TextField [name=test, value= I will disappear]{} \
  18.  
  19. TextField [name=other, width=textwidth, value= Can I take the place of the first field when it is hidden ?]{} \
  20. end{Form}
  21. end{document}
Add Comment
Please, Sign In to add comment