I’m using the great Advanced Forms plugin (Version: 1.9.1) for Wordpress for a client.
Therefore I have a question. How can I send the current page/post title inside the notification email where the form is completed in? https://www.docuconcept.nl/documentoplossingen/digitaal-ondertekenen/ It's about the green "Demo aanvraag" button which will open in a pop-up.
I know that I can use {all_fields} for the filled fields. But can I somehow also retrieve the source page title? So that the client knows on which page the user was? I know that with another form plugin like WPForms it's possible with some special tags.
Thanks already!
I tried multiple tags like [url] [page_title] etc but nothing works.
I would like to ask if it is possible to display an image (either from an external source or from Google Drive of the same account as the form creator) as part of the confirmation message after a user has completed and submitted a Google Form.
I understand from the following past questions that there is no way to add dynamic data to the custom confirmation message after submitting a Google Form, but I am looking just to add an image:
Display custom message after submitting a Google Form
Is it possible to have a google form confirmation message that displays part of the response data?
Thank you!
I need the help. I have used the Really Simple Captcha Plugin in my project. This plugin is working fine. Now, I have query for validation error message.
When I submit the form without captcha, it does gives me an error. But the error doesn't says why the form wasn't submitted.
The error text should say "Please verify Captcha to submit the contact form"
So, Please give me solution on same.
I am using gravity form in wordpress with ajax.
It is working fine when all field are correct.
When I submit form it show a ajax spinner and show success message.
But when there is some error in any field, it show validation errors after spin.
But after it does nothing. Even if we correct all the fields it is not working.
PLease help
have an own customized form in wordpress.
action=<?php bloginfo('template_url'); ?>/send_form.php"
on submit, it goes always to send_form.php
but this php is for sending the info - and i cant style with with the theme....
is there a way to stay on the current page while it sends the info and print out and message in a field that the form has been sended succesfully???
anyone have some suggestion for me?
The answer to this is quite involved and getting it right takes a little care, but here are the essential points of one approach:
The action must be set to load the current page and you can do this by changing the action attribute in the <form> tag to: action=""
In the template file for this page, detect when the page loads after a form submission. You can do this by checking the state of the $_POST variable.
If there are post variables, process the form submission in the template file. You need to look at what happens in "send_form.php" to figure out what to do. Take care that you don't introduce security issues (e.g. be sure to use the NONCE).
Redirect back to the same page to get rid of the post variables. If you don't do this people will get those "Do you want to resubmit the form" warning messages. See the PHP header() function for doing the redirect and note that this must happen before any output is sent to the page.
Use server sessions to display a "Form submission successful". Set a session variable to your message before the redirect, then detect it when the page loads, display it, and remove it so the message doesn't display the next time the page loads.
That should give you a starting point.
If anyone else has a simpler solution, I'd love to hear it too.
If you want to do it through plugin instead of the theme, then use "admin_post"(admin_post_YOUR_ACTION) and "admin_post_nopriv" (admin_post_nopriv_YOUR_ACTION) actions. (Btw, you can use those actions through theme also)
Here is a good explanation: https://www.sitepoint.com/handling-post-requests-the-wordpress-way/