themselves.
Basically one can sign (with some certificate) and then validate.
% sign-001.tex
\setupinteraction[state=start]
\definefield[signature][signed]
\defineoverlay[signature][my signature]
\starttext
\startTEXpage[offset=1ts,frame=on,framecolor=darkblue]
sign: \inframed
sn't show the "yes", nor Acrobat X, but SumatraPDF does. I
> > modified your definition as:
> >
> > \definefield[test][check][cbox][][]
> >
> > And now the "yes" doesn't appear. However, I don't know how this affects
> > the functionality of the for
Dear list,
having the following sample code:
\setuppapersize[A4, landscape]
\setuplayout[page]
\setupinteraction[state=start]
\starttext
\setupfield[sl][horizontal]
[frame=off, width=\textwidth, height=\textheight]
\definefield[x][signature][sl]
\field[x]
I also attach
in \definesubfield, all subfields are
activated together, which is clearly wrong.
I hope that’s an easy fix.
Hraban
"""
\setupinteraction[state=start]
\setuppaper[a6,landscape]
\setupfield[CGradio][frame=off, height=1em, width=1em]
\definefield[CGjoin][radio][CGradio][CGPerson,CGCo
pinteraction[state=start]
>
> \definesymbol[yes][{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}]
> \definesymbol[no][]
>
> \newcount\chk
> \def\checkmark{%
> \global\advance\chk by 1
> \setupfield[setup1][width=0.5cm, height=0.5cm,rulethickness=1pt,
> co
onversion=mp]}]
\definesymbol [no] [{\externalfigure[off.svg][conversion=mp]}]
\setupfield[setup3][width=2ex, height=2ex]
\dorecurse{3}
{\definefield [check-\recurselevel] [check] [setup3] [yes,no] [no]}
\setupbodyfont[sans, 30pt]
\starttext
\startTEXpage[offset=1em, foregroun
[setup1][width=0.5cm, height=0.5cm,rulethickness=1pt, corner=round,
framecolor=red]%
\definefield[checkme\the\chk][check][setup1][yes,no][no]%
\field[checkme\the\chk]%
}
\starttext
\checkmark\
\checkmark\
\checkmark\
\stoptext
Sorry to bother the list but maybe it is helpful for someone
]%
\definefield[checkme\the\chk][check][setup1][yes,no][no]%
\field[checkme\the\chk]%
}
\starttext
\chk
\chk
\chk
\stoptext
But it gives the error ” You can’t use \global after \advance”
But this example works fine
\setupinteraction[state=start]
\newcount\clozecount
\def\mycloze{%
\global
ist in an interactive document.
>>
>> The problem seems to be that all checks/uncecks in same click, not each
>> individually.
>>
>> Is there something wrong with my code?
>
> Hi Jan-Erik,
>
> you basically put the same field twice.
>
u basically put the same field twice.
Add something like:
\definefield [check-you] [check] [setup 3] [yes,no] [no]
\define\chka{\field[check-you]}
\chka
Checks will be different then.
I hope it helps,
Pablo
[yes] [{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}]\definesymbol [no] []\setupfield[setup 3][width=0.5cm, height=0.5cm,rulethickness=1pt, corner=round, framecolor=red]\definefield [check-me] [check] [setup 3] [yes,no] [no]\define\chk{\field[check-me]}\starttext\chk\blank[3cm]\chk
]
[width=0.5cm, height=0.5cm,
rulethickness=1pt, corner=round, framecolor=red]
\definefield [check-me] [check] [setup 3] [yes,no] [no]
\define\chk{\field[check-me]}
\starttext
\chkgfgkfgfghjl
\chkdfdffdfff
\stoptext
> 22 maj 2022 kl. 10:47 skrev Jan-Erik Hägglöf :
>
>
]
\definesymbol [yes] [{\externalfigure[mp-cont.502]}]
\definesymbol [no] []
\setupfield
[setup 3]
[width=2cm, height=2cm,
rulethickness=3pt, corner=round, framecolor=red]
\definefield [check-me] [check] [setup 3] [yes,no] [no]
\starttext
\field[check-me]
\stoptext
> 20 maj 2022 kl. 12:28 skrev Henn
Hi Hans,
I have the following sample:
\setupinteraction[state=start]
\starttext
\startTEXpage[offset=2em]
\setupfield[ShortLine][horizontal][width=5cm,height=5em]
\definefield [Email] [signature] [ShortLine]
\field [Email] [your email]
\stopTEXpage
\stoptext
If I sign
(?)
>
> But you might check yourself with the following sample:
>
> \setuppapersize[A10, landscape]
> \setuplayout[page]
> \setupinteraction[state=start]
> \starttext
> \setupfield[sl][horizontal]
> [frame=on, width=\textwidth, height=\textheight]
&g
ersize[A10, landscape]
\setuplayout[page]
\setupinteraction[state=start]
\starttext
\setupfield[sl][horizontal]
[frame=on, width=\textwidth, height=\textheight]
\definefield[x][signature][sl]
\field[x]
\stoptext
The attached certificate has the password 123456.
Only mupdf-gl s
natures into one, however Okular doesn't.
I could, however, isolate the original issue I posted on the ML:
Actually forms still work, but they don't, if embedded into TABLEs.
Here's a MWE:
\setupinteraction[state=start]
\definefield[lineField][line][][][]
\starttext
\bTABLE[] \bTR
Hi,
I cannot get the signature working either, but almost certain it did work
in February this year, as I have done some with MKIV.
>From the test suite:
fields-007.tex
\nopdfcompression
\setupinteraction[state=start]
\starttext
\definefield[x][signature]
\field[x]
\stoptext
Using the ht
On 12/11/2020 6:13 PM, Andres Conrado Montoya wrote:
Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I
modified your definition as:
\definefield[test][check][cbox][][]
And now the "yes" doesn't appear. However, I don't know how this affects
the funct
Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I
modified your definition as:
\definefield[test][check][cbox][][]
And now the "yes" doesn't appear. However, I don't know how this affects
the functionality of the form.
--
Andrés Conrado Montoy
height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black]
> \definefield[test][check][cbox][yes][no]
>
> \starttext
> \field[test] \space Do you see the word »yes«?
> \stoptext
>
> Unfortunately in Firefox and some other PDF Viewer there is th
,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black]
\definefield[test][check][cbox][yes][no]
\starttext
\field[test] \space Do you see the word »yes«?
\stoptext
Unfortunately in Firefox and some other PDF Viewer there is the word
"yes" written in the checkbox.
This make
Hans,
I have the following sample:
\setupinteraction[state=start]
\starttext
\startTEXpage[offset=1em]
\definefield[x][signature]
\field[x]
\stopTEXpage
\stoptext
I can only use Acrobat to sign PDF documents with signature fields
generated by ConTeXt. Other tools sign
ickness=1pt,framecolor=lightgrey]
>
> \setupfield[totalField][reset,horizontal]
>[
>height=2pc,
>rulethickness=1pt,
>framecolor=lightgrey,
>option=readonly,
>calculate=JS(tallyUp),
true;
}
\stopJSpreamble
\setupfield
[numField]
[reset,horizontal]
[height=2pc,
rulethickness=1pt,
afterkey=JS(recalculate{}),
focusout=JS(recalculate{}),
framecolor=lightgrey]
\setupfield
[totalField]
[reset,horizontal]
[height=2pc,
rulethickness=1pt,
option=r
[height=2pc,rulethickness=1pt,framecolor=lightgrey]
\setupfield[totalField][reset,horizontal]
[
height=2pc,
rulethickness=1pt,
framecolor=lightgrey,
option=readonly,
calculate=JS(tallyUp),
]
\definefield[A][line][numField][]
\definefie
t file ---
\setupinteraction
[state=start]
\definesymbol[yes][1]
\definesymbol[nop][0]
\setupfield[whatever][width=20mm,height=20mm,frame=off]
\definefield[what][radio][whatever][whatone,whattwo][whatone]
\definesubfield[whatone][][yes,nop]
\definesubfield[whattwo][][yes,nop]
\startuniqueMPgra
\setupinteraction
[state=start]
\definesymbol[yes][1]
\definesymbol[nop][0]
\setupfield[whatever][width=20mm,height=20mm,frame=off]
\definefield[what][radio][whatever][whatone,whattwo][whatone]
\definesubfield[whatone][][yes,nop]
\definesubfield[whattwo][][yes,nop]
\setupfield[textstuff
le all
> other fields’ contents get copied, it doesn’t work for radiobuttons; my
> minimal example unfortunately can’t show that.
>
>
> \setupinteraction[state=start]
>
> \setupfield[MMradio][
> option=printable,
> frame=overlay, corner=round,
> height=1em,
This is a feature request or wish:
I would be glad to have a module (e.g. "fakefields") as a drop-in replacement
that overwrites the field commands (\setupfield, \definefield, \definesubfield,
\field) with a version that doesn’t create form fields but just \inframeds that
loo
can’t show that.
>
>
> \setupinteraction[state=start]
>
> \setupfield[MMradio][
> option=printable,
> frame=overlay, corner=round,
> height=1em, width=1em,
> align=bottom,
> ]
>
> \definefield[chooseTeX][radio][MMradio][rbContext,rbLatex,
,
frame=overlay, corner=round,
height=1em, width=1em,
align=bottom,
]
\definefield[chooseTeX][radio][MMradio][rbContext,rbLatex,rbOther][rbContext]
\definesubfield[rbContext][][]
\definesubfield[rbLatex][][]
\definesubfield[rbOther][][]
\starttext
I want to use \field[rbContext] \CONTEXT
\startbuffer[abc]
> buffer contents
> \stopbuffer
> Just an attachment.\attachment[name=buffer.txt, author={Me},
> title={\MyContent\ \input knuth}, buffer=abc]
>
> \setupfield [TextSetup][width=.5\textwidth, height=.5\textwidth,
> frame=off]
={\MyContent\ \input knuth}, buffer=abc]
\setupfield [TextSetup][width=.5\textwidth, height=.5\textwidth,
frame=off]
\definefield [SomeField] [text] [TextSetup] [\MyContent\ \input
knuth]
\field[SomeField]
\stoptext
Would it be possible to have full expansion in PDF
On 05/24/2017 11:57 AM, luigi scarso wrote:
> On Sun, May 21, 2017 at 9:17 PM, Pablo Rodriguez <oi...@gmx.es> wrote:
>> Dear list,
>>
>> some time ago, Hans implemented signature fields:
>>
>> \setupinteraction[state=start]
>> \starttext
>
On 05/24/2017 11:00 AM, Hans Hagen wrote:
> On 5/21/2017 9:17 PM, Pablo Rodriguez wrote:
>> \setupinteraction[state=start]
>> \starttext
>> \definefield[x][signature]
>> \field[x]
>> \stoptext
>>
>> I’m afraid I’m n
On Sun, May 21, 2017 at 9:17 PM, Pablo Rodriguez <oi...@gmx.es> wrote:
> Dear list,
>
> some time ago, Hans implemented signature fields:
>
> \setupinteraction[state=start]
> \starttext
> \definefield[x][signature]
> \field[x]
> \stoptext
&g
On 5/21/2017 9:17 PM, Pablo Rodriguez wrote:
Dear list,
some time ago, Hans implemented signature fields:
\setupinteraction[state=start]
\starttext
\definefield[x][signature]
\field[x]
\stoptext
I’m afraid I’m not able to sign it using Acrobat 9.5.5, which
Dear list,
some time ago, Hans implemented signature fields:
\setupinteraction[state=start]
\starttext
\definefield[x][signature]
\field[x]
\stoptext
I’m afraid I’m not able to sign it using Acrobat 9.5.5, which is the
latest version released for Linux.
Acrobat Reader 9.5.5
Hans,
I have the following sample:
\setupinteraction[state=start]
\starttext
\setupfield [TextSetup]
[width=.5\textwidth,
height=.5\textwidth,
frame=off]
\definefield [SomeField] [text] [TextSetup] [\input knuth]
\field[SomeField]
\stoptext
Would
Thanks Wolfgang for pointing the direction.
My effort so far gave the following:
\setuppapersize[S4][S4]\setupinteraction[state=start,click=no]
\definefield
[Choice][radio][ChoiceSetup] [yes,no]
\definesymbol [YesS] [Y] %[\ding{52},color=red] %% Not successful in getting
the symbols I
Am 2016-03-10 16:56, schrieb Hans Hagen:
next beta:
\setupinteraction[state=start]
\starttext
\definefield[x][signature]
\field[x]
\stoptext
It's working; thank you very much :-)
___
If your question
[...] /Subtype
/Widget [...] /T (Einrichter Name)
"Einrichters Unterschrift" is another Signature Field)
next beta:
\setupinteraction[state=start]
\starttext
\definefield[x][signature]
\field[x]
\stoptext
Am 2016-03-09 16:16, schrieb Hans Hagen:
On 3/9/2016 2:11 P
);
df.value = CurDate;
function toggleField(){
var f = this.getField(Datum);
f.display = ! f.display;
}
\stopJSpreamble
%\goto{toggle}[JS(toggleField)]
\blank
\setupfield[MMshortString][reset,horizontal][height=5mm, width=50mm, frame=off,
bottomframe=on]
\definefield[Datum][line
=off,
bottomframe=on]
\definefield[Datum][line][MMshortString][][JS(CurDate)] % JS(CurDate) ends up
verbatim in the field
Date: \field[Datum]
\stoptext
Greetlings, Hraban
Greetlings Hraban,
This appears to be a pdf reader problem. On Win 8.1, Windows Reader and
Chrome both show an editable
[state=start]
\setupfield
[TextSetup]
[width=\textwidth, height=10em, background=screen, backgroundscreen=.97,
frame=off]
\definefield [Block] [text] [TextSetup] [] [What's on your mind?]
\starttext
\field [Block] [type here]
\stoptext
I have a situation where the amount of text typed
in 10em.
\usemodule[fields]
\setupinteraction[state=start]
\setupfield
[TextSetup]
[width=\textwidth, height=10em, background=screen,
backgroundscreen=.97, frame=off]
\definefield [Block] [text] [TextSetup] [] [What's on your mind?]
\starttext
\field [Block] [type here]
\stoptext
I have
=screen,backgroundscreen=.97,frame=off]
\definefield [Block] [text] [TextSetup]
\starttext
\field [Block]
\stoptext
In this example the height is 5em. The field will scroll lines up when the
height of the lines typed exceeds the height of the field. Click outside
the field and the field displays
,background=color,backgroundcolor=darkgreen]{
}}]
\definesymbol [rno] []
\definesymbol [wyes]
[{\framed[frame=off,width=2em,height=2em,background=color,backgroundcolor=darkred]{
}}]
\definesymbol [wno] []
\definefield [rcheckme][check] [setup 3] [ryes,rno] [rno]
\definefield [wcheckme][check] [setup 3
] []
\definefield [rcheckme][check] [setup 3] [ryes,rno] [rno]
\definefield [wcheckme][check] [setup 3] [wyes,wno] [wno]
\starttext
\field[rcheckme] Germany is a country in Europe.
\field[wcheckme] All germans are men.
\goto{Reset}[ResetForm]
\stoptext
%%% END OF FILE
2) In the example file above I
,align=middle,background=screen,backgroundscreen=.90,frame=off]
[height=40pt,width=100pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off]
\setupfield[widget][]
\definefield [Emaila] [line] [widget] [] [pragma@wxs.nl]
\field [Emaila] [your email]
\stoptext
,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off,regionin=JS(Initialize_TeX_Key),afterkey=JS(Convert_TeX_Key),validate=JS(Convert_TeX_String)]
\definefield [Email] [line] [ShortLine] [] [pragma at wxs.nl]
\field [Email] [your email]
\stoptext
]
[height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off]
\definefield [Email] [line] [ShortLine] [] [pragma at wxs.nl]
\startalignment[middle]
\field [Email] [your email]
\par
\field [Email] [your email]
\stopalignment
\stoptext
% end of example
,backgroundscreen=.90,frame=off]
\setupfield
[sizea]
[horizontal]
[style={\switchtobodyfont[20pt]}]
\setupfield
[sizeb]
[horizontal]
[style={\switchtobodyfont[28pt]}]
\setupfield
[sizec]
[horizontal]
[style={\switchtobodyfont[20pt]}]
\definefield [Emaila] [line] [sizea] [] [pra...@wxs.nl
=80pt,align=middle,background=screen,backgroundscreen=.90,frame=off]
[height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off]
\definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl]
\startalignment[middle]
\field [Email] [your email]
\par
\field
[sizea]
[horizontal]
[style={\switchtobodyfont[20pt]}]
\setupfield
[sizeb]
[horizontal]
[style={\switchtobodyfont[28pt]}]
\setupfield
[sizec]
[horizontal]
[style={\switchtobodyfont[20pt]}]
\definefield [Emaila] [line] [sizea] [] [pra...@wxs.nl]
\definefield [Emailb] [line] [sizeb] [] [pra...@wxs.nl
=JS(Convert_TeX_String)]
\definefield [Kommentar] [text] [TextSetup] [Ihr
Veranstaltungskommentar...]
\starttext
\bTABLE
\bTR \bTD Kommentar: \eTD \bTD \field [Kommentar] [Ihr Kommentar...] \eTD
\eTR
\eTABLE
\button{Absenden}[SubmitForm{mailto::daniel.gryc...@rub.de,Kommentar}]
\stoptext
=JS(Convert_TeX_key),
validate=JS(Convert_TeX_String)]
\definefield [Kommentar] [text] [TextSetup] [Ihr
Veranstaltungskommentar...]
\starttext
\bTABLE
\bTR \bTD Kommentar: \eTD \bTD \field [Kommentar] [Ihr Kommentar...] \eTD
\eTR
\eTABLE
\button{Absenden}[SubmitForm{mailto::daniel.gryc...@rub.de
}{\definefield [hours#1] [line] [setup] [] []}
\def\Feld#1%
{\bTR\bTD \date[d=#1,m=8,y=2010][dd,{.},mm,{.},year,~,(,weekday,)] \eTD
\bTD \field[hours#1] \eTD\eTR}
2) The text in the left column an the text in the field are not on the same
baseline. The field-text is slightly higher.
Thank you
Am 31.08.2010 um 14:30 schrieb Lutz Haseloff:
1) After I fill one field in the PDF-file all other fields inherit the text.
How can I prevent this?
The fields are all the same. You can:
\dorecurse{31}{\definefield [hours#1] [line] [setup] [] []}
\def\Feld#1%
{\bTR\bTD \date[d=#1,m=8
Am 19.02.2010 um 14:20 schrieb Hans Hagen:
On 19-2-2010 10:40, Andreas Harder wrote:
\setupfield
[ShortLine]
[label,frame,horizontal]
[height=fit,framecolor=green]
[]
[height=18pt,style=rmtf] % - still mono
\definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl
Hi all,
if I use the following setup
\setupfield
[ShortLine]
[label,frame,horizontal]
[height=fit,framecolor=green]
[]
[height=18pt,type=normal] % - is mono
\definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl]
\starttext
\startTEXpage[offset=1ex]
\field [Email] [E-Mail
On 19-2-2010 10:40, Andreas Harder wrote:
\setupfield
[ShortLine]
[label,frame,horizontal]
[height=fit,framecolor=green]
[]
[height=18pt,type=normal] %- is mono
\definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl]
\starttext
\startTEXpage[offset=1ex]
\field [Email] [E
]
[height=18pt,width=15em,align=middle,frame=off]
[height=18pt,width=20em,align=right,style=\tfx,frame=on]
\definefield[textA] [line] [lineABC] [] []
\definefield[textB] [line] [lineABC] [] []
\definefield[textC] [line] [lineABC] [] []
\starttext
Calculate the addition: A + B = C\par
=18pt,width=20em,align=right,style=\tfx,,frame=on]
\definefield[textA] [line] [lineABC] [] []
\definefield[textB] [line] [lineABC] [] []
\definefield[textC] [line] [lineABC] [] []
\startJScode{Calculate}
AFSimple_Calculate(SUM, new Array (textA, textB));
\stopJScode
Calculate
value to JS caluclation and show the result
into another field.
Thanks
Jeroen
\setupcolors[state=start]
\setupinteraction[state=start]
\starttext
\definefield[textdensity] [line] [linedensity] [] []
\definefield[textdepth] [line] [linedepth] [] []
\definefield[textpressure
not work. I also tried some extensive
use of \noexpand and \expandafter, but it failed, too. Obviously, there's
some \csname...\endcsname stuff going on when creating the URL.
TIA,
olli
Here's a minimal example:
\setupcolors[state=start]
\setupinteraction[state=start]
\starttext
\definefield
Hi,
seems that color support is also broken in case of interaction. I get no
red frame for the attached example.
Best wishes, Peter
\setupcolors[state=start]
\setupinteraction[state=start]
\starttext
\definesymbol[no][]
\definefield[check-me][check][setup3][yes,no][no]
\setupfield[setup3][n
field length}
\definefield [Email] [line] [ShortLine] [] [EMAIL PROTECTED]
Field 2: \field [Email] [your email]
\stoptext
Thanks!
Bernhard
___
If your question is of interest to others as well, please add
:
% interface=en tex=pdfetex output=pdftex
\starttext
Field 1: \fillinfield[name]{text that defines field length}
\definefield [Email] [line] [ShortLine] [] [EMAIL PROTECTED]
Field 2: \field [Email] [your email]
\stoptext
Thanks!
Bernhard
\setupinteraction[state=start]
\starttext
\setupfield [UglySetup] [width=6em, height=1.2\lineheight, location=low]
\definefield [Ugly] [choice] [UglySetup] [ugly,awful,bad] [ugly]
Text text \field[Ugly] text text.
\stoptext
I use ConTeXt ver: 2008.03.24 23:24 MKIV fmt: 2008.4.2 int: english/english
= font.Digital ;
this.dirty = false }
var timeout = app.setInterval(start_clock(),1000);
\stopJSpreamble
% Field of clock
\useJSscripts[fld]
\definefield [time.clock] [line] [TimeLogo]
\setupfield [TimeLogo] [horizontal,frame]
[width=fit,height=25pt,background=,
backgroundcolor=,frame
]
\definedescription[name][settings]
# \definedfont
\defineenumeration[names][name][settings]
# \defineexternalfigure
\definefield[reference][widget type][setup name][names][initial content]
\definefieldstack[name][names][settings]
\definefiguresymbol[name][text][settings]
\definefloat[singular
. I've got the navigation buttons
in the bottom. Now I'd like to add one more button that would open a
field on the current page---a field containing the list of content. I'd
like it to go to the \Topic I want to discuss and disappear.
I tried this:
\definefield[Content][check][HelpSetup
containing the list of content. I'd like it to go
to the \Topic I want to discuss and disappear.
I tried this:
\definefield[Content][check][HelpSetup][content][content]
\setupfields[reset]
\setupfield[HelpSetup]
[width=fit,height=fit,frame=off,option={readonly,hidden}] %
\definesymbol[content
=JS(Walk_Field{sequence})]
\definefield[Walk][check][interaction][empty][empty]
\definefieldstack[sequence]
[one,two,three,four,five]
[frame=off,
offset=none,% default offset causes different positioning of walk button and
fieldstack
]
\defineproperty[interaction][layer][title
=off,option={readonly,hidden}]
\def\currenthelp{Help::\abc}
\definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc]
[helpinfo\abc]
\definesymbol [helpinfo\abc] [\SomeHelpText]
\def\SomeHelpText%
{\framed
[width=1.2em,height=fit,align=middle,style=small,
frame=on,background=color
,height=fit,frame=off,option={readonly,hidden}]
\def\currenthelp{Help::\abc}
\definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc]
[helpinfo\abc]
\definesymbol [helpinfo\abc] [\SomeHelpText]
\def\SomeHelpText%
{\framed
[width=1.2em,height=fit,align=middle,style=small,
frame=on,background
}
var f = this.getField(TestField) ;
if (f) {
if (f.textFont == Times-Roman) {
f.textFont = LMRoman12-Regular;
} else {
f.textFont = Times-Roman;
}
}
\stopJScode
\setupinteraction[state=start]
\pdfcompresslevel=0
\starttext
\definefield
on that
\setupfield[notes][offset=overlay,frame=off,option={readonly,hidden},%
%regionin=JS(Hide_Note),
regionout=JS(Hide_Note),
username={Test!},
%clickin=JS(Hide_Note),
%clickout=JS(Hide_Note),
]
\definefield[note
and
fieldstack
clickin=JS(Walk_Field{sequence})]
\definefield[Walk][check][interaction][empty][empty]
\definefieldstack[sequence]
[one,two,three,four,five]
[frame=off,
offset=none,% default offset causes different positioning of walk button and
fieldstack
]
\defineproperty[interaction
--
\setupinteraction[state=start]
\startJSpreamble functions used now
function do_digit(d)
{ Stack[Level] += String(d);
do_refresh(Level) }
\stopJSpreamble
\startJScode{digit}
do_digit(JS_S_1);
\stopJScode
\definefield[Stack.1][line][Results
\startJScode{digit}
do_digit(JS_S_1);
\stopJScode
\definefield[Stack.1][line][Results][][
\setupfield
[Results]
[horizontal,frame]
[width=fit,
height=2cm,
frame=on]
[height=18pt,width=80pt,align=middle,frame=off]
[height=18pt,width=80pt,color=red,align=right,style=type,frame
]
\startJSpreamble functions used now
function do_digit(d)
{ Stack[Level] += String(d);
do_refresh(Level) }
\stopJSpreamble
\startJScode{digit}
do_digit(JS_S_1);
\stopJScode
\definefield[Stack.1][line][Results][][
\setupfield
[Results]
[horizontal,frame]
[width=fit
]
\startJSpreamble functions used now
function do_digit(d)
{ Stack[Level] += String(d);
do_refresh(Level) }
\stopJSpreamble
\startJScode{digit}
do_digit(JS_S_1);
\stopJScode
\definefield[Stack.1][line][Results][][
\setupfield
[Results]
[horizontal,frame]
[width=fit
);
do_refresh(Level) }
\stopJSpreamble
\startJScode{digit}
do_digit(JS_S_1);
\stopJScode
\definefield[Stack.1][line][Results][][
\setupfield
[Results]
[horizontal,frame]
[width=fit,
height=2cm,
frame=on]
[height=18pt,width=80pt,align=middle,frame=off]
[height=18pt,width=80pt,color=red
,
framecolor=blue,
offset=none,% default offset causes different positioning of walk button and
fieldstack
clickin=JS(Walk_Field{sequence})]
\definefield[Walk][check][interaction][empty][empty]
\definefieldstack[sequence]
[one,two,three,four,five]
[frame=off,
offset=none,% default offset
}]
\definesymbol[sgolds3][\FS{E}]
\setupfield[hidden][width=4cm,height=4cm,
% frame=off,
framecolor=blue,
clickin=JS(Walk_Field{fgolds3})]
\definefield[Walk][check][hidden][empty][empty]
\definefieldstack[fgolds3]
[sgolds1,sgolds3a,sgolds3b,sgolds3c,sgolds3]
[frame=off,clickin=JS
/numberSymbolscurrencySymbolscurrencySymbol
name=symbol€/currencySymbolcurrencySymbol
name=isonameEUR/currencySymbolcurrencySymbol
name=decimal,/currencySymbol/currencySymbols/locale/localeSet
\stopembed
\startembed[xfa][postamble]
/xdp:xdp
\stopembed
\setupinteraction[state=start]
\starttext
\definefield[whatever
[fr]
\setupinteraction[state=start]
\definefield [Help] [check] [HelpSetup] [helpinfo] [helpinfo]
\setupfields[reset]
\setupfield[HelpSetup][option={readonly,hidden}]
\definesymbol [helpinfo] [SomeHelpText]
\starttext
\fitfield[Help]
\goto {Help} [JS(Toggle_Hide{Help})].
\stoptext
this works ok
Denis Pinsard wrote:
Hello,
The following code doesn't work with the fr option.
It seems that there is interferences with javascript features.
Any idea to solve this problem is welcome.
Thank you in advance.
\mainlanguage[fr]
\setupinteraction[state=start]
\definefield [Help] [check] [HelpSetup
Hello,
The following code doesn't work with the fr option.
It seems that there is interferences with javascript features.
Any idea to solve this problem is welcome.
Thank you in advance.
\mainlanguage[fr]
\setupinteraction[state=start]
\definefield [Help] [check] [HelpSetup] [helpinfo] [helpinfo
Henning Hraban Ramm wrote:
Will this also work with field names ( \definefield[Übelkübel]... )?
no, what happens when you do that?
(i can of course add such code in more places)
Hans
-
Hans
\definefield[#2][line][Skill][#1]\field[#2]
\else % if no second optional arg
\definefield[#3][line][Skill][#3]\field[#3]
\fi
\eTD\eTR}
e.g.
\SkillField[+8][Aergern]{Ärgern} % works
\SkillField[+1]{Labern} % does nothing instead of else
\SkillField{Testen
Hello again!
In a form I need a lot of empty, but numbered fields.
Can I access the counter of \dorecurse somehow, or is there another
loop command?
e.g.
\dorecurse{20}{\bTR \bTD \LoopCounter bottles of beer \eTD \bTD{\strut}
\eTD \eTR}
or
\dorecurse{20}{\definefield[Fld\LoopCounter][line
]{RÄtsch}
test \placeindex
\stoptext
Thank you!
Will this also work with field names ( \definefield[Übelkübel]... )?
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http
\ifsecondargument % if second optional arg is provided
\definefield[#2][line][Skill][#1]\field[#2]
\else % if no second optional arg
\definefield[#3][line][Skill][#3]\field[#3]
\fi
\eTD\eTR}
e.g.
\SkillField[+8][Aergern]{Ärgern} % works
Hi there!
I try to typeset a roleplaying character sheet as PDF form;
it contains a table of skills, each line is a \SkillField after this
def:
\def\SkillField#1#2{\bTR\bTD #1\hfill (#2) \eTD \bTD
\definefield[#1][line][SkillSetup][#2]\field[#3]\eTD\eTR}
e.g.
\SkillField{Climbing}{+8}
becomes
[radiofield][vertical] % same for horizontal+\hbox
[align=right,
distance=0mm,
offset=none,
strut=no,
fieldoffset=0mm,
frame=on,
empty=yes,
option=empty,
]
\definefield[Radio1][radio][radiofield][Button1,Button2,Button3][Button1]
\definesubfield[Button1] [button
=on,
]
\setupfield[radiofield][vertical] % same for horizontal+\hbox
[align=right,
distance=0mm,
offset=none,
strut=no,
fieldoffset=0mm,
frame=on,
empty=yes,
option=empty,
]
\definefield[Radio1][radio][radiofield][Button1,Button2,Button3][Button1]
\definesubfield[Button1] [button
1 - 100 of 104 matches
Mail list logo