Title: Execute php code if required fields are not compiled
Last modified: February 22, 2024

---

# Execute php code if required fields are not compiled

 *  Resolved [Fede84](https://wordpress.org/support/users/fede84/)
 * (@fede84)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/execute-php-code-if-required-fields-are-not-compiled/)
 * Hi, i’m trying to execue php code when on the form submit one or more required
   fields are empty. I want to do dynamically not linked to the number or type of
   fields. It’s possible?
 * Thanks

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

 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/execute-php-code-if-required-fields-are-not-compiled/#post-17450214)
 * Hi [@fede84](https://wordpress.org/support/users/fede84/),
 * Thanks for reaching out!
 * I apologize as customizations like this are outside of our scope for support.
   In case you’d like to look into custom development options, we highly recommend
   using [Seahawk](https://seahawkmedia.com/services/wordpress-development/).
 * In case it helps, you can check the actions and filters available to help with
   custom code in [our developer documentation](https://wpforms.com/developers/).
 * Thanks!
 *  Plugin Support [Shawon Chowdhury](https://wordpress.org/support/users/shawon001/)
 * (@shawon001)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/execute-php-code-if-required-fields-are-not-compiled/#post-17455945)
 * Hi [@fede84](https://wordpress.org/support/users/fede84/),
   We haven’t heard back
   from you in a few days, so I’m going to go ahead and close this thread for now.
   But if you’d like us to assist further, please feel welcome to continue the conversation.
 * Thanks!

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

The topic ‘Execute php code if required fields are not compiled’ is closed to new
replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 3 participants
 * Last reply from: [Shawon Chowdhury](https://wordpress.org/support/users/shawon001/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/execute-php-code-if-required-fields-are-not-compiled/#post-17455945)
 * Status: resolved