{"id":6805,"date":"2023-05-19T11:28:43","date_gmt":"2023-05-19T11:28:43","guid":{"rendered":"https:\/\/www.process.st\/help\/docs\/form-field-validation-forms\/"},"modified":"2026-08-20T05:36:32","modified_gmt":"2026-08-20T05:36:32","slug":"form-field-validation-forms","status":"publish","type":"ht_kb","link":"https:\/\/www.process.st\/help\/docs\/form-field-validation-forms\/","title":{"rendered":"Form Field Validation in Forms"},"content":{"rendered":"<p>Form field validation gives you greater control over the data you collect in your forms.<\/p>\n<h2>Which form fields can I validate?<\/h2>\n<p>You can add validation to:<\/p>\n<ul>\n<li>Short text fields<\/li>\n<li>Long text fields<\/li>\n<li>Email fields<\/li>\n<li>Number fields<\/li>\n<li>Date fields<\/li>\n<\/ul>\n<h2>What validations are possible?<\/h2>\n<p><strong>Short and long text fields:<\/strong><\/p>\n<p>A minimum and a maximum number of characters.<\/p>\n<p><strong>Email fields:<\/strong><\/p>\n<p>Allow or block emails from a certain domain (for example, don&#8217;t allow gmail.com or yahoo.com).<\/p>\n<p><strong>Number fields:<\/strong><\/p>\n<p>Number fields support several validation options:<\/p>\n<ul>\n<li><strong>Min value<\/strong> and <strong>Max value<\/strong> \u2014 restrict the accepted range of numbers.<\/li>\n<li><strong>Min digits<\/strong> and <strong>Max digits<\/strong> \u2014 control how many digits the number must have.<\/li>\n<li><strong>Decimal places<\/strong> \u2014 set how many decimal places are allowed.<\/li>\n<li><strong>Allow negative numbers<\/strong> \u2014 choose whether negative values are accepted.<\/li>\n<li><strong>Unit<\/strong> \u2014 display a unit label alongside the field (for example, kg, USD, or %).<\/li>\n<\/ul>\n<p><strong>Date fields:<\/strong><\/p>\n<p>Restrict the accepted date range with two constraints:<\/p>\n<ul>\n<li><strong>Date must be after<\/strong> \u2014 set a specific calendar date as the earliest allowed value.<\/li>\n<li><strong>Date must be before<\/strong> \u2014 set a specific calendar date as the latest allowed value.<\/li>\n<\/ul>\n<h2>Placeholder text<\/h2>\n<p>Add placeholder text to your form fields to show an example of how to fill them in or to provide additional instructions.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-15759\" src=\"https:\/\/www.process.st\/help\/wp-content\/uploads\/2024\/02\/field-validation.png\" alt=\"form field validation\" width=\"100%\" \/><\/p>\n<p>You can add placeholder text to:<\/p>\n<ul>\n<li>Short text fields<\/li>\n<li>Long text fields<\/li>\n<li>Email fields<\/li>\n<li>Number fields<\/li>\n<li>File Upload fields<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Form field validation gives you greater control over the data you collect in your forms. Which form fields can I validate? You can add validation to: Short text fields Long text fields Email fields Number fields Date fields What validations are possible? Short and long text fields: A minimum and a maximum number of characters. [&hellip;]<\/p>\n","protected":false},"author":14,"template":"","meta":{"_acf_changed":false,"available_plan":"All plans","available_product":"Forms","footnotes":""},"ht_kb_category":[483],"ht_kb_tag":[477,493],"class_list":["post-6805","ht_kb","type-ht_kb","status-publish","hentry","ht_kb_category-forms","ht_kb_tag-forms","ht_kb_tag-validation"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/ht_kb\/6805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/users\/14"}],"version-history":[{"count":6,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/ht_kb\/6805\/revisions"}],"predecessor-version":[{"id":10184,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/ht_kb\/6805\/revisions\/10184"}],"wp:attachment":[{"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/media?parent=6805"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/ht_kb_category?post=6805"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/ht_kb_tag?post=6805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}