WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 Dynamic Text Extension
[resolved] Refering Page Title (4 posts)

  1. Rutzki
    Member
    Posted 4 months ago #

    Hi,

    is ist somehow possible to add the page/post title of the refering site to a dynamic text field?

    Cheers ;)

    https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/

  2. sevenspark
    Member
    Plugin Author

    Posted 4 months ago #

    Hi Rutzki,

    You'd need to pass that page/post title as GET/POST parameter, or else perhaps save and retrieve from a cookie, in order to do that.

    If you mean from an external site (which you don't control), then the best you could do would be to use the Referrer URL.

    Hope that helps,

    Chris

  3. Rutzki
    Member
    Posted 4 months ago #

    Hi,

    i tried to put in the following code.

    <form action="#url_cf7" method="get">
       <input type="hidden" value="#_EVENTNAME" name="name">
       <input type="hidden" value="#_EVENTDATES" name="date">
       <input type="submit" value="Zur Anmeldung">
    </form>

    so what next to show up the infos on the cf7 page?
    Cheers

  4. sevenspark
    Member
    Plugin Author

    Posted 4 months ago #

    You would retrieve the values of each of your inputs with

    CF7_GET key='name'
    CF7_GET key='date'

    The action of your form should submit to the page that has the contact form, and the value of the inputs will be inserted into the dynamic text fields.

    Hope that helps,

    Chris

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.