This is probably not a real issue for wp-forms but I just lost an hour resolving the following bug and I just wanted to document it somewhere.
In my form, I had a field named member. I also have a custom post type with the same name. I don’t know exactly why but if I submit the form and the validation doesn’t pass, I get redirected to the correct URL with the 404 template being displayed. I’ve tested with other custom post types and the behaviour is similar. It doesn’t seems to happen with fields named postor page though.
I’ve renamed the field "member_type" and now it works perfectly. Do you have any idea where this conflict could come from and if it could be prevented by wp-forms somehow?
Thanks for this great and highly customisable API by the way.
This is probably not a real issue for wp-forms but I just lost an hour resolving the following bug and I just wanted to document it somewhere.
In my form, I had a field named
member. I also have a custom post type with the same name. I don’t know exactly why but if I submit the form and the validation doesn’t pass, I get redirected to the correct URL with the 404 template being displayed. I’ve tested with other custom post types and the behaviour is similar. It doesn’t seems to happen with fields namedpostorpagethough.I’ve renamed the field "member_type" and now it works perfectly. Do you have any idea where this conflict could come from and if it could be prevented by wp-forms somehow?
Thanks for this great and highly customisable API by the way.