Command/field

Unofficial ConTeXt Wiki mirror

Last modified: 2026-05-21

Summary

The command \field is used for interactive fields such as input lines, text boxes, radio buttons, text boxes, check boxes, and maybe more.

Settings

\field[...][...]
[...] name
[...] text

Option Explanation
name a defined field, from \definefield
text purpose yet to be described.

Description

Typeset an interactive field defined with \definefield and \setupfield .

TODO: Missing documentation here. (See: To-Do List)

Examples

Example 1

From Jean-Pierre Delange on the mailing list:

  • \setupinteraction[state=start]
    \setupfield [TextFieldSetup]
        [frame=on, width=8cm, height=1.2em,
           background=color, backgroundcolor=lightgray]
    \definefield [UserName] [line] [TextFieldSetup]
    
    Please enter your name: \blank[small]
    \field[UserName]
    

Notes

  • By Zsd on 2026-05-21T19:42:25+0000 :
\setupinteraction[state=start]
is needed for fields to show up and function.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: