Title: Backend validation
Last modified: July 30, 2024

---

# Backend validation

 *  Resolved [tomgde](https://wordpress.org/support/users/tomgde/)
 * (@tomgde)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/backend-validation/)
 * Hi [@all](https://wordpress.org/support/users/all/),
   i trying to create a plugin
   for CF7 that gets data over a rest api call and attach a csv file.Now i would
   like to validate the form filed with the api key ist not empty. Include the wpcf7-
   validates-as-required css class do not catch the empty field.Is there a solution?
   Regards, Thom

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/backend-validation/#post-17923526)
 * Adding a [`required`](https://github.com/rocklobster-in/swv/tree/v1.3.0/rules#required)
   rule [to the SWV schema](https://contactform7.com/2023/06/20/setting-upper-limit-of-checkbox-selection/)
   is the most recommended, but if you want to apply it only to the backend validation,
   you can also use the [filter-based validation](https://contactform7.com/2015/03/28/custom-validation/).
 *  Thread Starter [tomgde](https://wordpress.org/support/users/tomgde/)
 * (@tomgde)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/backend-validation/#post-17934531)
 * Thank You for the info.
   regards,Tom
    -  This reply was modified 1 year, 10 months ago by [tomgde](https://wordpress.org/support/users/tomgde/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Backend validation’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [tomgde](https://wordpress.org/support/users/tomgde/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/backend-validation/#post-17934531)
 * Status: resolved