{"id":239,"date":"2026-10-17T14:16:40","date_gmt":"2026-10-17T14:16:40","guid":{"rendered":"http:\/\/plugin-docs.com\/?post_type=doc&#038;p=239"},"modified":"2026-10-18T18:09:57","modified_gmt":"2026-10-18T18:09:57","slug":"configure-form-validation-rules","status":"publish","type":"doc","link":"https:\/\/dragwyb.com\/docs\/configure-form-validation-rules\/","title":{"rendered":"Configure Form Validation Rules"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Validation checks whether a submitted value meets the requirements for its field. Smart Form Builder does not use one universal set of validation controls for every field: configure the controls exposed by the selected field type, then test both acceptable and unacceptable values.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Set a field as required<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the field on the canvas.<\/li>\n<li>Open its content or basic settings and look for the required control. Depending on the field type, it is labelled <strong>Required<\/strong> or <strong>Is Required?<\/strong>.<\/li>\n<li>Enable the control if visitors must provide a value. The default is not uniformly displayed as a separate setting for every field, so check the selected field&#8217;s own control.<\/li>\n<li>Save the form and submit a test without entering a value to confirm the required-field message appears.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Configure field-specific rules<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Text Field:<\/strong> use <strong>Minimum Length<\/strong> and <strong>Maximum Length<\/strong> to limit the number of characters.<\/li>\n<li><strong>Number:<\/strong> use <strong>Min Value<\/strong>, <strong>Max Value<\/strong>, and <strong>Step<\/strong> to define the numeric input range and increment.<\/li>\n<li><strong>Email Field:<\/strong> the submitted value is checked for a valid email-address format.<\/li>\n<li><strong>URL Field:<\/strong> the submitted value is checked for a valid URL format.<\/li>\n<li><strong>Date Field<\/strong> and <strong>Time Field:<\/strong> use the available date\/time settings, including configured minimum or maximum values where supported.<\/li>\n<li><strong>Select Dropdown<\/strong>, <strong>Radio Button<\/strong>, and <strong>Checkbox Group:<\/strong> submitted choices are checked against the options configured for that field.<\/li>\n<li><strong>Mask Field:<\/strong> the value is checked against the selected mask format. Configure this in <a href=\"https:\/\/dragwyb.com\/docs\/docs\/smart-form-builder\/configure-input-masks\/\">Configure Input Masks<\/a>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Test validation before publishing<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Submit the form with required values missing.<\/li>\n<li>Test values below and above any configured character or numeric limits.<\/li>\n<li>Enter malformed email addresses, URLs, dates, times, or masked values where relevant.<\/li>\n<li>Choose valid options and confirm arbitrary values are not accepted for choice fields.<\/li>\n<li>Test the published form as a visitor as well as using the editor preview; do not assume a visual preview alone proves submission validation works.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Validation options vary by field. For the available field controls, see <a href=\"https:\/\/dragwyb.com\/docs\/docs\/smart-form-builder\/choose-form-field-types\/\">Choose Form Field Types<\/a>.<\/p>\n\n\n\n\n<p class=\"wp-block-paragraph\">Screenshot to add: Field settings showing a required control and field-specific validation settings<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/dragwyb.com\/docs\/docs\/smart-form-builder\/fields-editor\/\">Back to Fields and Editor Controls<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configure required fields and field-specific validation such as text length, numeric limits, email and URL formats, date\/time limits, and choice values.<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":233,"menu_order":0,"template":"","class_list":["post-239","doc","type-doc","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":1,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/239\/revisions"}],"predecessor-version":[{"id":1139,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/239\/revisions\/1139"}],"up":[{"embeddable":true,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/233"}],"wp:attachment":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/media?parent=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}