How to pass form input values to another page in Wordpress with Elementor - wordpress

I have searched the web for answer for almost a day and I couldn't find any answer about that.
Assuming that I'm having a Form created by the simple elementor form widget, and a client inserting a data there(name, email, number) and in another page I have some icon buttons(email, whatsapp, etc..) that should redirect the client to contact me
Like this one:
https://wa.me/1XXXXXXXXXX (Whatsapp start a chat link)
What I want to accomplish is that the input value from "Phone field" will replace the "1XXXXXXX" in the URL after the form is submitted
Is there any way to accomplish that? or any guide?

You can use POST method of php.
All you have to do is to create a page (i.e. submit) and then create a file in your theme folder (rather use child theme) with the name page-submit.php and write down your php code in it (use cpanel/direct admin to edit the file). Also, you should send your form to submit page, use action attribute in your form tag.

Related

Autofill a form in WordPress

I am using WordPress for building my own website, And I created a form using WP form plugin and users are supposed to fill this form after entering the site and I want parts of the form to be filled automatically for them according to the login information, i.e. name.
So my question is, how can I do this?
You can use jquery or javascript, take ID of that field and run ajax on page load you will get info of use logged in and put that in your field by using jquery parameter .val()

Send information from elementor form to another page with the modified data

I'm building a wordpress site with elementor pro.
I want to make a form (in which you enter some numerical data as metric cubes and other numbers) that redirects you to another page where that data is transformed. How can I do that?
maybe you can use a template with html javascript linked by an external link button
When redirecting to the other page (eg: site.com/other-page) you could include the "numerical data" as a Query String directly in the redirected URL (eg: site.com/other-page?data=1234). Then, upon initial loading of the other page, the data can be retrieved from the URL

How to create a user input form with WordPress?

I'm completely new to the whole WordPress scene so I kind of don't know the "WordPress way" of doing the desired task:
Create a form where a user would fill in some details (such as name, surname, upload a video or post a youtube iframe link)
Submit it, once it's done - an admin must verify that everything has been filled out correctly and after that the video can be seen on the website.
Should I write a plugin of some sort that would do that or how does it happen?
Thank you.
The Gravity Forms plugin allows you to do exactly what you're looking to do. With it, you can set up a form that creates a post and sets it to be 'Pending Review' in WordPress. This tutorial contains everything you need to know about what you'll need to do.
If you want to create a Custom Post Type (ie. 'User Page') to better separate user submissions, you'll need to employ this special add-on (as mentioned in the tutorial above).

How do I make a contact form 7 in wordpress

I want to Make a contact form in wordpress including input fields and some checkboxes , I want the form data to go to my email address.
How do I make one from scratch ?
Go to the wordpress dashboard and click "Contact" on the left hand side.
Click add new.
In this area you have two boxes, form and mail. Form is what is displayed on your website and mail generates what is sent to you (ie the e-mail address the form will be sent to and the default template of that e-mail).
Directing mail to your e-mail address is very simple - just change the "To" box to your e-mail.
The form box is completed by generating tags using the plugin. For example, to generate a file upload box you click generate tag -> file upload -> and change the options within (required field, etc) and then paste the given code to the form and the mail boxes where it directs you to.
Once this process is finished for all forms click save and copy the generated shortcode to the page you want to include this contact form in.
Hope this answers your question,
Paul
You can find all you need in their documentation.
Contact Form 7 Documentation

Sitecore Web Forms for Marketers - use current URL within email body

I am trying to build a 'Tell a Friend' form for my Sitecore site using Sitecore's Web Forms for Marketers module and would like to include the URL of the current page within the body of the email. I have set the save action of my form to 'Send Email Message' and was wondering if it would be possible to use some variable to represent the URL of the current page, but can't figure out how to do it.
I noticed that if you link to a page when editing the HTML editor for the email template, the source looks something like this:
Name of page
...so perhaps it is possible to use some similar syntax to get the current context page?
I have also tried setting the save action of my form to 'Tell a Friend' but I can't see how to make this include any email content at all, let alone how to make the email include a link to the current page.
For reference I am using Sitecore 6.5.
I have an idea for this, but its more of a hack. Worth a shot:
Since the Email Editor supports inserting hooks for the dynamic fields (refer to section 4.2.2 of the WFFM User Guide [PDF]), why don't you create a Single-Line Text field on the form, call it "Current Page" and apply a unique CSS class to it (e.g. .current-page)
Using custom CSS, hide the .current-page element and using JavaScript, get the window.location.url and put its value into the .current-page input (the hidden SLT field).
Now you can use the hook [Current Page] in your email body.
Again, this is an untested idea, so I'm not sure if it will work.

Resources