{"id":160,"date":"2026-11-19T08:54:34","date_gmt":"2026-11-19T08:54:34","guid":{"rendered":"https:\/\/oddlylogical.com\/logical-forms\/?post_type=doc&#038;p=160"},"modified":"2026-11-23T00:00:17","modified_gmt":"2026-11-23T00:00:17","slug":"text-field","status":"publish","type":"doc","link":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/","title":{"rendered":"Text field"},"content":{"rendered":"<p>Use Text for a short plain-text answer such as a company name, reference or job title. It is also useful for identifiers whose leading zeros must remain intact; a Number field normalizes numeric formatting.<\/p>\n<p><strong>Availability:<\/strong> Core (Free).<\/p>\n<h2 id=\"add\">Add and configure the field<\/h2>\n<ol>\n<li>Open the form in Build and add <strong>Text<\/strong> from Add fields.<\/li>\n<li>Select its canvas card to open Field options, then configure the controls below.<\/li>\n<li>Save the form and check its saved Preview and embedded page.<\/li>\n<\/ol>\n<h2 id=\"settings\">Field-specific settings<\/h2>\n<table>\n<thead>\n<tr>\n<th>Setting<\/th>\n<th>What it does<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Minimum characters<\/td>\n<td>Optional minimum normalized character count. Blank means no limit. A minimum does not make an empty optional field required.<\/td>\n<\/tr>\n<tr>\n<td>Maximum characters<\/td>\n<td>Optional maximum normalized character count. Counts characters, including interior spaces, rather than words. Answers are rejected rather than cut down to fit.<\/td>\n<\/tr>\n<tr>\n<td>Input mask<\/td>\n<td>Choose None, a predefined mask or Custom. For example, <code>aa-9999<\/code> describes a two-letter\/four-digit reference. A mask owns the accepted length while enabled; retained character bounds resume when it is removed.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"shared-options\">Applicable shared options<\/h2>\n<p>This field also provides Description placement, Validation message placement, Label, Description, Required, Required message, Invalid value message, CSS classes, Hide label, Admin label, Visibility, Placeholder, Default value, Autocomplete. See <a href=\"\/docs\/common-field-options\/\">common field options<\/a> for their behavior.<\/p>\n<p>Review <a href=\"\/docs\/field-visibility\/\">Visible, Hidden and Internal<\/a> before changing presentation. Static hiding differs from <a href=\"\/docs\/field-conditions\/\">conditional applicability<\/a>.<\/p>\n<p><a href=\"\/docs\/dynamic-population\/\">Dynamic population<\/a> offers Disabled, Parameter, Current user. Its applicable Parameter name and User property controls select the initial source; submitted or cleared answers are not refilled.<\/p>\n<p><a href=\"\/docs\/prevent-duplicate-answers\/\">No duplicates and Duplicate value message require Pro<\/a>. They compare accepted entries for this form and field, separately from Required.<\/p>\n<h2 id=\"answers\">Answers and behavior<\/h2>\n<p>The answer is one sanitized plain-text string. Surrounding whitespace and unsupported text markup are cleaned by the normal text normalization. Labels, descriptions and placeholders are configuration, not separate submitted answers.<\/p>\n<p>Mask formatting preserves accepted literals and leading zeros. It checks the structure of an answer rather than verifying whether a reference exists. See <a href=\"\/docs\/field-validation-and-masks\/\">validation and masks<\/a> for pattern syntax.<\/p>\n<h2 id=\"example\">Example and checks<\/h2>\n<p>For a short project title, set Label to Project title, enable Required and set Maximum characters to 80. Add a description explaining what makes a useful title rather than relying only on a placeholder.<\/p>\n<p>Test an empty answer, a title inside the limit and one above it. For a masked reference, test a complete and incomplete value. If a default is supplied, also clear it and confirm the cleared answer follows Required rather than silently returning to the default.<\/p>\n<p>Use <a href=\"\/docs\/test-a-form\/\">the testing checklist<\/a> to check validation and the saved entry. <a href=\"\/examples\/all-fields\/\">Explore all fields<\/a> provides live examples.<\/p>\n<figure class=\"lf-docs-shot\" id=\"lf-shot-text-field-1\" data-lf-docs-asset=\"S28-mask-example\" style=\"--lf-shot-width: 800px\">\n  <a href=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example.webp\" data-lf-docs-image data-native-width=\"2036\" data-native-height=\"301\" aria-label=\"Enlarge screenshot: The configured mask supplies a visible format hint for the visitor.\"><br \/>\n    <img src=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-800w.webp\" srcset=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-320w.webp 320w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-640w.webp 640w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-800w.webp 800w, https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-1600w.webp 1600w\" sizes=\"auto, (min-width: 1168px) 800px, (min-width: 992px) min(800px, calc(100vw - 337px)), (min-width: 768px) min(800px, calc(100vw - 278px)), min(800px, calc(100vw - 48px))\" width=\"2036\" height=\"301\" alt=\"Text input containing fictitious AB-1234 with the format hint AA-0000.\" loading=\"lazy\" decoding=\"async\"><br \/>\n  <\/a><figcaption>The configured mask supplies a visible format hint for the visitor.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Collect a short plain-text answer with Logical Forms, including character limits, input masks, defaults, dynamic population and Pro duplicate checks.<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":100,"template":"","doc-categories":[14],"class_list":["post-160","doc","type-doc","status-publish","hentry","doc_category-fields"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Text field | Logical Forms Docs<\/title>\n<meta name=\"description\" content=\"Collect a short plain-text answer with Logical Forms, including character limits, input masks, defaults, dynamic population and Pro duplicate checks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Text field | Logical Forms Docs\" \/>\n<meta property=\"og:description\" content=\"Collect a short plain-text answer with Logical Forms, including character limits, input masks, defaults, dynamic population and Pro duplicate checks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/\" \/>\n<meta property=\"og:site_name\" content=\"Logical Forms\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-23T00:00:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-800w.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/text-field\\\/\",\"url\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/text-field\\\/\",\"name\":\"Text field | Logical Forms Docs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/text-field\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/text-field\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/logicalforms.io\\\/wp-content\\\/uploads\\\/sites\\\/14\\\/2026\\\/11\\\/lf-docs-s28-mask-example-800w.webp\",\"datePublished\":\"2026-11-19T08:54:34+00:00\",\"dateModified\":\"2026-11-23T00:00:17+00:00\",\"description\":\"Collect a short plain-text answer with Logical Forms, including character limits, input masks, defaults, dynamic population and Pro duplicate checks.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/text-field\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/text-field\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/text-field\\\/#primaryimage\",\"url\":\"https:\\\/\\\/logicalforms.io\\\/wp-content\\\/uploads\\\/sites\\\/14\\\/2026\\\/11\\\/lf-docs-s28-mask-example-800w.webp\",\"contentUrl\":\"https:\\\/\\\/logicalforms.io\\\/wp-content\\\/uploads\\\/sites\\\/14\\\/2026\\\/11\\\/lf-docs-s28-mask-example-800w.webp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/text-field\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Text field\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/#website\",\"url\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/\",\"name\":\"Logical Forms\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/oddlylogical.com\\\/logical-forms-old\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Text field | Logical Forms Docs","description":"Collect a short plain-text answer with Logical Forms, including character limits, input masks, defaults, dynamic population and Pro duplicate checks.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/","og_locale":"en_US","og_type":"article","og_title":"Text field | Logical Forms Docs","og_description":"Collect a short plain-text answer with Logical Forms, including character limits, input masks, defaults, dynamic population and Pro duplicate checks.","og_url":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/","og_site_name":"Logical Forms","article_modified_time":"2026-11-23T00:00:17+00:00","og_image":[{"url":"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-800w.webp","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/","url":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/","name":"Text field | Logical Forms Docs","isPartOf":{"@id":"https:\/\/oddlylogical.com\/logical-forms-old\/#website"},"primaryImageOfPage":{"@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/#primaryimage"},"image":{"@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/#primaryimage"},"thumbnailUrl":"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-800w.webp","datePublished":"2026-11-19T08:54:34+00:00","dateModified":"2026-11-23T00:00:17+00:00","description":"Collect a short plain-text answer with Logical Forms, including character limits, input masks, defaults, dynamic population and Pro duplicate checks.","breadcrumb":{"@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/#primaryimage","url":"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-800w.webp","contentUrl":"https:\/\/logicalforms.io\/wp-content\/uploads\/sites\/14\/2026\/11\/lf-docs-s28-mask-example-800w.webp"},{"@type":"BreadcrumbList","@id":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/text-field\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/oddlylogical.com\/logical-forms-old\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/oddlylogical.com\/logical-forms-old\/docs\/"},{"@type":"ListItem","position":3,"name":"Text field"}]},{"@type":"WebSite","@id":"https:\/\/oddlylogical.com\/logical-forms-old\/#website","url":"https:\/\/oddlylogical.com\/logical-forms-old\/","name":"Logical Forms","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/oddlylogical.com\/logical-forms-old\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/docs\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":3,"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/docs\/160\/revisions"}],"predecessor-version":[{"id":463,"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/docs\/160\/revisions\/463"}],"wp:attachment":[{"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/oddlylogical.com\/logical-forms-old\/wp-json\/wp\/v2\/doc-categories?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}