| 1 |
The grayhints Package |
| 2 |
Author: D. P. Story |
| 3 |
Dated: 2018-11-01 |
| 4 |
|
| 5 |
This package provides JavaScript code snippets to create 'gray hints'. Gray |
| 6 |
hints, as I term them, are text that appears initially in a text field that |
| 7 |
gives a short hint as to what the contents of the text field should be; for |
| 8 |
example, a text field might contain the hint 'First Name', or a date field |
| 9 |
might read 'yyyy/mm/dd'. As soon as the field comes into focus, the hint |
| 10 |
disappears. It reappears when the field is blurred and the user did not enter |
| 11 |
any text into the field. |
| 12 |
|
| 13 |
What's New (2018/11/01) Revised package to work correctly with PDF-XChange Editor (not |
| 14 |
PDF-XChange View). Improved code for handling the case where the user commits date by |
| 15 |
pressing the Enter key (the data is committed, but the field does not blur). Some commands |
| 16 |
for customizing the user experience in the case of pressing the Enter key to commit. |
| 17 |
|
| 18 |
Dependent packages: |
| 19 |
(1) eforms (2017/02/27) to use the field fields of eforms. |
| 20 |
(2) insdljs (2017/03/02) a minimal requirement when using form fields defined |
| 21 |
by hyperref when calculation fields are used. |
| 22 |
(3) Hyperref form fields may be used without eforms or insdljs, but the gray |
| 23 |
hints for calculation fields will not appear. |
| 24 |
|
| 25 |
Package works for dvips/Distiller, pdflatex, lualatex, and xelatex. |
| 26 |
|
| 27 |
PDF Viewers: Adobe Reader DC, PDF-XChange Editor, and, of course Adobe Acrobat. |
| 28 |
|
| 29 |
Enjoy! |
| 30 |
|
| 31 |
Now, I must get back to my retirement. |
| 32 |
|
| 33 |
dps |
| 34 |
dpstory at uakron dot edu |