Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1431579

    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

    • This topic was modified 8 months ago by TBant.
    #1431587

    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?

    #1431589

    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.

    #1431653

    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

    #1432786

    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 &

    #1432824

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.