PDF-form.lyx: some more info and few adaptions

- pdfform.module: a fix
This commit is contained in:
Uwe Stöhr 2015-04-29 22:06:00 +02:00
parent 2a77dc5ec6
commit 41b39ff835
2 changed files with 141 additions and 8 deletions

View File

@ -413,6 +413,70 @@ Note:
\end_inset
\end_layout
\begin_layout Standard
Using the same name for several text fields results in an automatic duplication
of the inserted text.
This is for example useful if the user should input a date that should
appear at different places in the form.
\begin_inset Newline newline
\end_inset
Here are 2
\begin_inset space ~
\end_inset
fields as example: Fill one and see that the other one will also be filled
automatically:
\begin_inset Newline newline
\end_inset
\begin_inset Flex TextField
status open
\begin_layout Plain Layout
\begin_inset Argument 1
status open
\begin_layout Plain Layout
name=identic
\end_layout
\end_inset
\end_layout
\end_inset
\begin_inset Newline newline
\end_inset
\begin_inset Flex TextField
status open
\begin_layout Plain Layout
\begin_inset Argument 1
status open
\begin_layout Plain Layout
name=identic
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
@ -420,11 +484,15 @@ All form fields can be customized by adding parameters.
\end_layout
\begin_layout Standard
Here is a customized multiline text field with a width of 5
Here is a customized multiline text field with a width of 60
\begin_inset space \thinspace{}
\end_inset
cm and a proposed content:
% of the text width, 3
\begin_inset space \thinspace{}
\end_inset
cm height and a proposed content:
\begin_inset VSpace defskip
\end_inset
@ -442,7 +510,7 @@ status open
status open
\begin_layout Plain Layout
name=customer2, width=5cm, multiline, width=0.6
name=customer2, multiline, width=0.6
\backslash
textwidth, height=3cm, value={Testman}
\end_layout
@ -883,6 +951,15 @@ status open
\begin_layout Plain Layout
\begin_inset Argument 1
status open
\begin_layout Plain Layout
\end_layout
\end_inset
Don't click on this button or your fridge will be destroyed!!!
\end_layout
@ -898,7 +975,7 @@ The action that is triggered by pressing the button is specified by JavaScript
\series bold
onclick={}
\series default
and write the JavaScript code between the braces.
and insert the JavaScript code between the braces.
\end_layout
\begin_layout Standard
@ -980,6 +1057,15 @@ status open
\begin_layout Plain Layout
\begin_inset Argument 1
status open
\begin_layout Plain Layout
\end_layout
\end_inset
\backslash
href{http://wiki.lyx.org}{Information how to fill out this form}
@ -1107,6 +1193,13 @@ submit1
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Newpage newpage
\end_inset
\end_layout
\begin_layout Subsection
@ -1396,6 +1489,15 @@ status open
\begin_layout Plain Layout
\begin_inset Argument 1
status open
\begin_layout Plain Layout
\end_layout
\end_inset
Enter your name here:
\end_layout
@ -1474,6 +1576,15 @@ status open
\begin_layout Plain Layout
\begin_inset Argument 1
status open
\begin_layout Plain Layout
\end_layout
\end_inset
Are you older than 18 years?
\end_layout
@ -2494,8 +2605,8 @@ space 0 R}
\end_layout
\begin_layout Standard
Then add the necessary JavaScript code to your preamble or as TeX code to
your document.
Then add the necessary JavaScript code to your document LaTeX preamble or
as TeX code to your document.
For info about JavaScript, see its documentation,
\begin_inset CommandInset citation
LatexCommand cite
@ -2623,6 +2734,27 @@ end{insDLJS}
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Note Greyedout
status open
\begin_layout Plain Layout
\series bold
Note:
\series default
\emph on
All
\emph default
JavaScript funtions must be inserted into the same insDLJS environment.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
@ -2644,7 +2776,7 @@ parameters
\series bold
name=contract,radio,value=tl,default=tl,validate={validateTime();}
name=contract,radio,default=tl,validate={validateTime();}
\end_layout
\begin_layout Standard
@ -2657,7 +2789,7 @@ status open
status open
\begin_layout Plain Layout
name=contract,radio,value=tl,default=tl,validate={validateTime();}
name=contract,radio,default=tl,validate={validateTime();}
\end_layout
\end_inset

View File

@ -41,6 +41,7 @@ Style "End PDF Form"
CopyStyle "Begin PDF Form"
LatexName end{Form}
LabelString "End PDF Form"
ResetArgs 1
End
Style "PDF Link Setup"