• HI all,

    is there a way to add a value to the submit button in order to send out information to the confirmation email? For instance we have

    submit button “i don’t like this”
    submit button “i like this”
    submit button “this is cool”

    I want every button to SUBMIT the contact information people have to insert above these 3 buttons in my contact form. But I want the confirmation mail for the admin to see what people choose from, the “I don’t like this” or the “i like this” or “this is cool”. I don’t want to make same checkboxes, I want the contact form to send the information after clicking these submit buttons: 1) Info will be sent 2) In the confirmation mail I can see which submit button they pressed.

    Thanks so much!
    Hubertus

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try this.

    Form tab:

    <input name="your-submit" type="submit" value="i don't like this" />
    <input name="your-submit" type="submit" value="i like this" />
    <input name="your-submit" type="submit" value="this is cool" />

    Mail tab:

    [your-submit]

    Thread Starter Foxhounds

    (@foxhounds)

    Dear Takayuki Miyoshi thanks so much for getting back! Unfortunately this is not what I am looking for.

    This is my current code:
    [submit class:to-button large full-width rounded to-button-bg to-button-anim id:form-submit “TEST 1”]
    [submit class:to-button large full-width rounded to-button-bg to-button-anim id:form-submit “TEST 2”]
    [submit class:to-button large full-width rounded to-button-bg to-button-anim id:form-submit “TEST 3”]

    I need to get an email where I am able to see which submit button the user exactly choose, for instance “TEST3”. Any idea?

    Thanks so much,
    Hubertus

    Thread Starter Foxhounds

    (@foxhounds)

    Edit: The solution you provided – again thank you so much! – does not work: the “[your-submit]” stays the same in the confirmation mail… ??

    Apologies for butting in but wouldn’t a select/dropdown be a better approach rather than multiple submit buttons (which can be problematic at the best of times)? You could even tie the selection into the mail subject header so that, long term, you could even filter the emails by subject.

    Just a thought…

    Thread Starter Foxhounds

    (@foxhounds)

    This would be great, thanks for the hint but we need to have buttons as the client wishes to have some for people to “press their choice”. :/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Submit Button send Information’ is closed to new replies.