You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Yes. This stuff happens inside WordPress core (not inside this plugin). My solution for this issue — just prefix all name attributes with my custom form prefix.
P. S. I think the author forgot about this repository and now I create forked version of this (you can find it in my Github profile). I've added few custom elements such as markup — any custom html markup inside your form. Support AJAX-form submitting. And now try to fix checkboxes element - they don't save cheched statuses after submit with errors.
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 namedpost
orpage
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.
The text was updated successfully, but these errors were encountered: