FieldHint

FieldHint

is an option for InputField that specifies contents to display when the input field is empty.

Details

  • An option setting of Null disables the field hint.
  • The field hint cannot be selected and will disappear as soon as keyboard focus is moved into the input field.
  • The default styling of field hints displays them in a lighter shade so they won't be confused with user input.
  • The style of the field hint is determined by the option FieldHintStyle applied in addition to the input field's regular style.

Examples

Basic Examples  (1)

Add ghost contents to an input field:

Wolfram Research (2010), FieldHint, Wolfram Language function, https://reference.wolfram.com/language/ref/FieldHint.html.

Text

Wolfram Research (2010), FieldHint, Wolfram Language function, https://reference.wolfram.com/language/ref/FieldHint.html.

CMS

Wolfram Language. 2010. "FieldHint." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FieldHint.html.

APA

Wolfram Language. (2010). FieldHint. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FieldHint.html

BibTeX

@misc{reference.wolfram_2024_fieldhint, author="Wolfram Research", title="{FieldHint}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/FieldHint.html}", note=[Accessed: 10-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_fieldhint, organization={Wolfram Research}, title={FieldHint}, year={2010}, url={https://reference.wolfram.com/language/ref/FieldHint.html}, note=[Accessed: 10-December-2024 ]}