Daniel Gregory
Forum Replies Created
-
Forum: Plugins
In reply to: [HTML Forms - Simple WordPress Forms Plugin] no form submissions save at allAfter digging through the code I found the solution!
The
sage-html-formspackage overrides the html of the form, to allow developers to define the form markup in code. In addition I’m using sage’s “Composers” to dynamically generate the form data. This is a problem because the plugin uses the markup to find the number of fields the form contains and this dynamically generated data isn’t available when the validation occurs so validation fails because of the check within validate_form (line 105 of class-forms.php) method:count($data) > $form->get_field_count()However, after realising this was the issue I also noticed that it was possible to disable checking the request size through
hf_validate_form_request_sizewhich fixed my issue and allowed the form to be submitted.- This reply was modified 3 years, 9 months ago by Daniel Gregory.
Forum: Plugins
In reply to: [HTML Forms - Simple WordPress Forms Plugin] no form submissions save at allI’ve got query monitor installed and there’s nothing in there
In the network tab of inspector I’m getting this response from /wp/wp-admin/admin-ajax.php?action=hf_form_submit : https://paste.pics/IMSL3
Forum: Plugins
In reply to: [HTML Forms - Simple WordPress Forms Plugin] no form submissions save at allI’m experiencing the same issue, I’ve followed the advice to uninstall/reinstall with no joy.
My setup: Bedrock, Roots/Sage 10 with log1x/sage-html-forms
When the form is submitted I’m getting a successful response however no submission is recorded and no email is received, even though an action has been added.
Things I’ve checked:
– That wordpress can send email by resetting the password via the password reset form.
– That the submissions table has been created in the db.
– Tried unchecking and rechecking the save submissions option.I’m going to try and work through this myself to fix the issue but posting here just incase there’s any insight available from the devs 🙂
Thank you!
Awesome, thanks @rpetersen29