InputField—Wolfram Documentation
represents a blank editable input field.
InputField[x]
represents an editable input field that currently contains the expression x.
InputField[Dynamic[x]]
takes the contents of the input field to be the dynamically updated current value of x, with the value of x being reset if new contents are entered.
InputField[x,String]
represents an input field whose contents are taken to be a string.
InputField[x,Number]
represents an input field whose contents are taken to be a number.
InputField[x,type]
represents an input field whose contents are taken to be of the specified type.
Details and Options
Examples
open all close allBasic Examples (2)
Dynamically update the variable via the InputField:
Scope (2)
Options (16)
Appearance (1)
BaselinePosition (1)
BaseStyle (1)
ContinuousAction (2)
By default, variables are not continuously updated:
Setting ContinuousAction makes variable updates whenever a change is made to the input:
Enabled (2)
By default, InputField is enabled:
By setting Enabled->False, the field is disabled but visible in its current state:
FieldCompletionFunction (1)
Applications (1)
Properties & Relations (1)
Possible Issues (4)
InputField will remain unevaluated if the expression does not match the type:
Use a cleared Dynamic variable to create an empty input field that only accepts numbers:
Null indicates no value in an input field of style Boxes:
The box representation of the symbol Null is the string "Null":
Null in an Expression style input field produces an empty result:
Related Guides
Text
Wolfram Research (2007), InputField, Wolfram Language function, https://reference.wolfram.com/language/ref/InputField.html (updated 2016).
CMS
Wolfram Language. 2007. "InputField." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/InputField.html.
APA
Wolfram Language. (2007). InputField. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InputField.html
BibTeX
@misc{reference.wolfram_2025_inputfield, author="Wolfram Research", title="{InputField}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/InputField.html}", note=[Accessed: 22-February-2026]}
BibLaTeX
@online{reference.wolfram_2025_inputfield, organization={Wolfram Research}, title={InputField}, year={2016}, url={https://reference.wolfram.com/language/ref/InputField.html}, note=[Accessed: 22-February-2026]}