{"id":320,"date":"2022-02-21T08:00:47","date_gmt":"2022-02-21T08:00:47","guid":{"rendered":"https:\/\/www.process.st\/help\/form-field-validation\/"},"modified":"2024-03-07T11:38:58","modified_gmt":"2024-03-07T11:38:58","slug":"form-field-validation","status":"publish","type":"post","link":"https:\/\/www.process.st\/help\/form-field-validation\/","title":{"rendered":"Form Field Validation"},"content":{"rendered":"<p>We&#8217;ve added validation to selected <a href=\"https:\/\/www.process.st\/help\/docs\/form-fields\/\">form fields<\/a> to allow you greater control of what data you collect in your workflow runs.<\/p>\n<h3>Which form fields can I validate?<\/h3>\n<p>You can add validation to:<\/p>\n<ul>\n<li>Short text fields<\/li>\n<li>Long text\u00a0fields<\/li>\n<li>Date\u00a0fields<\/li>\n<li>Email fields<\/li>\n<li>File upload fields<\/li>\n<li>Number fields<\/li>\n<\/ul>\n<h3>What validations are possible?<\/h3>\n<p><strong>Short and long text fields:<\/strong><\/p>\n<p>A minimum and a maximum number of characters.<\/p>\n<p><strong>Date fields:<\/strong><\/p>\n<p>Before or after a selected date.<\/p>\n<p><strong>Email fields:<\/strong><\/p>\n<p>Allow or block emails from a certain domain (e.g. don&#8217;t allow gmail.com or yahoo.com).<\/p>\n<p><strong>File upload fields:<\/strong><\/p>\n<p>Allow specified file type\/s only (e.g. only accept PDFs or Jpegs (or both!)).<\/p>\n<p><strong>Number fields:<\/strong><\/p>\n<ul>\n<li>Minimum &amp; maximum digit limit (e.g. 10 digits for a US phone number). If you want to set exactly # of digits, set that number as the min and the max digit validation.<\/li>\n<li>Minimum &amp; maximum value limit (e.g. value can\u2019t exceed $100).<\/li>\n<li>Decimal validation &#8211; the number of decimal places required (1, 2 or 3).<\/li>\n<li>Negative numbers &#8211; allow\/block negative numbers.<\/li>\n<\/ul>\n<h3>What happens to my existing workflow runs?<\/h3>\n<p>If you have active workflow runs with data already completed in form fields <em>before<\/em> you added validation, you would need to rectify the value so that it matches the validation criteria.<\/p>\n<p>No data is lost or overwritten in your active workflow runs. Once you update the data in the form fields to meet the validation criteria, you can then complete the workflow run.<\/p>\n<h3>What about passing data via the API?<\/h3>\n<p>When using the API, validations are respected so that you cannot pass invalid data into a form field where validation has been set.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve added validation to selected form fields to allow you greater control of what data you collect in your workflow runs. Which form fields can I validate? You can add validation to: Short text fields Long text\u00a0fields Date\u00a0fields Email fields File upload fields Number fields What validations are possible? Short and long text fields: A [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"available_plan":"All plans","available_product":"Forms","footnotes":""},"categories":[4],"tags":[56],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-updates","tag-form-fields"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":1,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":7637,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/posts\/320\/revisions\/7637"}],"wp:attachment":[{"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.process.st\/help\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}