Command/definefield

From Wiki
< Command
Revision as of 08:26, 5 October 2015 by Hraban (talk | contribs) (example, links)
Jump to navigation Jump to search

\definefield

Syntax

\definefield[...][...][...][...,...,...][...]
[...] name
[...] name
[...] name
[...,...,...] name
[...] name


Description

Define an interactive field (widget)

  1. reference name
  2. type of widget (e.g. line)
  3. name of setup (defined with \setupfield)
  4. content values (for radio buttons or checkboxes)
  5. initial content of field


Example

\usemodule[fields] % MkIV
\setupfield[shortString][reset,horizontal][width=45mm,option=printable,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm]
\definefield[Name][line][shortString][][Hans]
\field[Name]

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: