• Resolved germanero

    (@germanero)


    Hello there!

    I’m wondering how can I get the button ID (element ID) from my form? I was trying with [“CF7_GET key=’ID,'”] but not working. I mean, I have two forms in the same page, and I need to get the ID from where user is writing me. That is possible?

    EG: Button 1 name: “Contact1”, ID: “1”. Button 2 name: “Contact2”, ID: “2”.

    Regards.

    • This topic was modified 1 year, 8 months ago by germanero.
    • This topic was modified 1 year, 8 months ago by germanero.
    • This topic was modified 1 year, 8 months ago by germanero.
Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi @germanero,

    I don’t think using the DTX will be the proper approach here. (To be clear, the plugin only pulls values that can be determined via shortcode – that is, server side. The CF7_GET shortcode you’re using pulls the values from the query string in the URL. If you’re trying to grab a client side value, you’d need Javascript, which is outside the scope of this plugin)

    But if you have two CF7 separate forms, then you can just add a static value in each of them to differentiate between the two.

    And you likely don’t need a special input at all, you can just add some sort of differentiator in the email message body that gets sent to you via the Mail tab in the CF7 plugin.

    Hope that makes sense ??

Viewing 1 replies (of 1 total)
  • The topic ‘How to get the form button ID?’ is closed to new replies.