Hello
I am trying to make a button direct user to my contact form with preselected information depending which button was pressed.
For example if I have 3 buttons: apple, orange, pear. If the user presses “apple”, I want to direct the user to the /contact form where there is a field with “apple” selected from a list (or typed/printed in a text box) so I know which fruit they selected. I know how to add the dropdown to the contact form but not how to make the selection based on the button pressed.
I do not want to ceate a contact form for each option.
Thank you
It appears something like http://localhost/wordpress/contact/?fruit=apple works on contact form 7.. is something like this possible with the Enfold default form?
I have resolved this for now by installing contact form 7 however I would be interested to know if this functionaltiy is available with Enfold, and this may help other people looking for the solution.
Hi,
Thank you for the inquiry
This option is not built into the default contact form, but you can achieve it using custom scripts. However, we recommend sticking with the Contact Form 7 implementation, as it provides more options for future customization.
Best regards,
Ismael
for a button you can try to insert the link as:
(Email address hidden if logged out) ?subject=Kontaktaufnahme%20über%20Ihre%20Homepage&body=Sehr%20geehrte%20Damen%20und%20Herren
spaces should be made as: %20
first is the subject with a Questionmark ?
next body text added by Ampersand &