Title: Error Field GDPR
Last modified: September 24, 2019

---

# Error Field GDPR

 *  [Virginie Duboscq](https://wordpress.org/support/users/mentzelia/)
 * (@mentzelia)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-field-gdpr/)
 * Hi there,
 * I put a checkbox for GDPR compliance in my form.
    When I submit the url in w3c
   validator service I have this error: “Element p not allowed as child of element
   label in this context”
 * I checked the file: wp-content/plugins/caldera-forms/fields/gdpr
    And I found
   this:
 * <label for=”<?php echo esc_attr( $field_id); ?>”
    class=”caldera-forms-gdpr-field-
   label” style=”display:inline; margin-left: 0.5rem;” > <?php if( ! array_key_exists(‘
   hide_label’, $field ) ){ echo esc_html($field[‘label’]); } ?> <p class=”caldera-
   forms-consent-field-agreement” > <?php echo esc_textarea( $field[‘config’][‘agreement’]);?
   > </p>
 * I tried by changing <p> with <div> but it’s the same error.
 * What can I do to avoid this w3c error?
 * Thanks for your answer,

The topic ‘Error Field GDPR’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Virginie Duboscq](https://wordpress.org/support/users/mentzelia/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/error-field-gdpr/)
 * Status: not resolved