Answers.Body: <p><a href="https://github.com/civicrm/civicrm-core/pull/31028" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/31028</a></p>
  <p>Made a PR. Seems like the attribute was missed for Date field.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-09-02T01:08:14.700Z
Answers.LastActivityDate: 2024-09-02T01:08:14.700Z
Answers.UserDisplayName: darkmode
Body: <p>Required rule for birth date or date field in general that is in form builder page is not working.</p>
  <p>It will not prompt that the field is required when there is no selected value for it. Which then continues to submit it. Then backend will respond with status code 200 but has data of:
  <code>{&quot;error_code&quot;:0,&quot;error_message&quot;:&quot;Validation Error&quot;,&quot;status&quot;:500}</code>.</p>
  <p>This Validation Error (based on logs) indicates that the birth date field is a required field.</p>
  <p>Also, if the form builder settings had <code>Post-Submit Page</code> entry, it would also reroute to it even though there was a validation error.</p>
  <p>CiviCRM: 5.76.2
  WordPress: 6.6.1
  Fresh Install/Setup</p>
  
Tags: <formbuilder>
Title: FormBuilder: Required rule for birth date that is in form builder page is not working
ThreadText: # FormBuilder: Required rule for birth date that is in form builder page is not working
  
  (Asked by: username_0 on 2024-08-30)
  
  Required rule for birth date or date field in general that is in form builder page is not working.
  
  It will not prompt that the field is required when there is no selected value for it. Which then continues to submit it. Then backend will respond with status code 200 but has data of:
  `{"error_code":0,"error_message":"Validation Error","status":500}`.
  
  This Validation Error (based on logs) indicates that the birth date field is a required field.
  
  Also, if the form builder settings had `Post-Submit Page` entry, it would also reroute to it even though there was a validation error.
  
  CiviCRM: 5.76.2
  WordPress: 6.6.1
  Fresh Install/Setup
  
  **Tags:** formbuilder
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2024-09-02. Score: 1 | Accepted answer
  
  <https://github.com/civicrm/civicrm-core/pull/31028>
  
  Made a PR. Seems like the attribute was missed for Date field.
  
  
  ---
  
  