Styling a contact form, and can't for the life on me figure out what's causing this to show when the checkbox is ticked. See live site here > https://adeeba.com.au/contact/
Related
I have a home accomodation website and it has a page with all the rooms and another one with contact info and email form. The page with rooms has a "Book" button under every room. My idea was that when the "Book" button is pushed than the wepage automatically goes to the Contact page and room info is submitted to the email form. For example when i press the Book button under 3-people bedroom than the text "The client likes to book 3-people bedroom" is added to the email form. I am using Wordpress and Elementor builder for my page and Formidable for form.
I think you could even do this simpler then the suggestion of Umair by indeed adding a parameter to the url. But then istead of using the echo, you can easily retrieve the values by adding the following code as default value in the form [get param=parameter]
So in your example you would create three buttons with following url
https://example.org/contact?room=room1
https://example.org/contact?room=room2
https://example.org/contact?room=room3
On your contact form choose the field in which you want to show the text and add as default value
[get param=room].
Obviously you can change the text after the parameter 'room=' in whatever you want.
Hi Yes you need to add a get request url (https://testdomain.com/formpage/?formtext=formtitle) of this button so when the user click on the button it will redirect with the get request url like this https://testdomain.com/formpage/?formtext=formtitle
then you can add this variable echo where ever you want to display this text also in the fomidable form also have this variable option to place in form.
so your form will be display with the selected text by default.
if( $_GET["formtext"]){
echo $_GET["formtext"];
}
I have a wordpress setup and I am using Contact Form & as a form builder. The problem I am facing is that, I want to frame my email based on the selected dropdown option but not getting the solutions to rectify this.
You can use this and let me know
[select your-recipient "CEO|ceo#example.com"
"Sales|sales#example.com"
"Support|support#example.com"]
Add this in your email tag
[_raw_{field name}] ([_raw_your-recipient]
I think it will work for you.
I have Contact Form 7 in my WordPress. The form has two text boxes and one checkbox. How can I send a copy of the letter, if chekbok selected? Perhaps there is a hook, which allows you to do this?
I believe you can accomplish this by editing the form tag, of course in your case you would edit the checkbox form tag and not the select form tag shown below :
[select your-recipient "CEO|ceo#example.com"
"Sales|sales#example.com"
"Support|support#example.com"]
and then editing your mail tag like so:
[_raw_{field name}] ([_raw_your-recipient]
For a more in depth explanation check out this link: https://contactform7.com/selectable-recipient-with-pipes/
I am created a contact form in Wordpress, using Contact form 7 - plugin.
Is it possible to create a dropdown-menu, in which, an action is triggered when the user selects one of the options from the menu? e.g. displays an alert saying something like "great choice"?
Here so we select your dropdown menu, we then create a event handler to watch for the user to click on there and then we simply use alert
$('.YourDropDownClass').click( function(){
alert('Great Choice!');
});
Some tools for you to learn JQuery:
http://jquery.com/
http://www.w3schools.com/jquery/
I have two options "New and Renewal".
If user select Renewal option and submit the data they will charge 35$,
and if select New option then they will charge 50$.
How can I integrate Paypal by using this option button from contact form.
Thanks.
For simplier method
1. Go to Contact (CF7) page and edit your form
2. At the bottom of the page, find "Additional Settings"
3. Place this code
on_sent_ok: "location = 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=[YOUR BUTTON ID HERE]';"
You can add paypal to contact form 7 easily with following steps
1. On paypal Go to My Account >> My profile >> My Selling Tools option >> Update Link of Paypal Button
2. Create a new paypal button
3. After that choose the contact form that you want to edit
4. Find Additional Settings at bottom of the contact form edit page
5. Add the below code after replacing paypal button id with the code you have copied from the paypal site
on_sent_ok: "location = 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=[YOUR BUTTON ID HERE]';"
Source: http://www.mytechshout.com/add-paypal-contact-form-7-plugin/