• I made a contact form and put into a popup. That popup then should be triggered from 2 different buttons on the same site. Depending on the clicked button, I want to fill a hidden field with a specific text.

    So if I click button 1, the hidden field should be “abc”, if I click button 2, it should be “def”.
    Where that specific text comes from, is irrelevant. It can be the id or name of the buttons or even their label.

    I was thinking about something like:

    [contact-form-7 id="12" title="contact1" myField="abc"]

    Is this possible?

    • This topic was modified 5 years, 9 months ago by FY-xMBJbB5.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Setting text depending on clicked button’ is closed to new replies.