{"id":18972555,"date":"2026-07-23T00:48:45","date_gmt":"2026-07-23T00:48:45","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/fields-require-validate-interaction\/"},"modified":"2026-07-23T00:48:45","modified_gmt":"2026-07-23T00:48:45","slug":"fields-require-validate-interaction","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/fields-require-validate-interaction\/","title":{"rendered":"Field&#8217;s require &amp; validate interaction"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello I noticed that fields that have a validation apply it when the required properties are not met, is there a filter available to disable that? (I checked the docs but all of them seemed to be to target a single field, I need something global)<br \/><br \/>And second, if a field is hidden because it doesnt pass the requirements, is the recieved value in the request still saved to the database?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">E.g.  If a field does not pass required conditions it should not run the validation, and the field should be saved as empty string in the db, is that something achievable?<\/p>\n","protected":false},"template":"","class_list":["post-18972555","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18972555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18972555\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18972555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}