Comments (2)
You're setting up your validator callback correctly. The form itself is not getting passed into the Submission object. How are you hooking in your registration callback (i.e., where are you calling wp_register_form())? Are you hooked into 'wp_forms_register'? My initial suspicion is that you're registering the form too late.
from wp-forms.
I was calling the wp_register_form() method, but i hadn't realised that i also needed to hook into the 'wp_register_form' action. Might be good to add more emphasis to these two steps in the documentation.
from wp-forms.
Related Issues (10)
- Documentation - Redirect to same form post submission HOT 1
- Add an example folder with sample forms HOT 1
- Support FieldSet elements HOT 2
- Support form pagination
- wp_form_htmltag_default - add an extra attribute to the element to support this customisation
- How to add selected attribute to specific options in a checkbox group. HOT 4
- Question - Radio elements and post-validation state HOT 1
- Field name conflict with custom post type HOT 3
- Esc textarea content
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-forms.