Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WP Contact form 7 Dynamic Text plugin, feel like the solution should be simple

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #268018
    eross200
    Participant

    Hey folks, this is my first post was looking for some assistance. Trying to pre-populate a Contact Form 7 form with the title of the post it’s sent from, which seems like it should be easy, but I’m having trouble.

    Here’s what I have in my contact form:

    [dynamichidden chapter “CF7_get_post_var key=’title’”]

    [submit “Send”]

    Here’s what I have in the message body in my “mail” tab:

    From: [your-name]
    Subject: [your-subject]

    Message Body:
    [title]
    [your-message]

    This is where I got those instructions:

    https://www.daddydesign.com/wordpress/how-to-dynamically-add-a-wordpress-post-title-in-contact-form-7/

    would appreciate any assistance because I’m probably only screwing one hting up.

    #268032
    vulkanus
    Participant

    Hi,

    try to change de quotes maybe helps.

    yours:
    [dynamichidden chapter “CF7_get_post_var key=’title’”]

    original:
    [dynamictext dynamicname „CF7_get_post_var key=’title’“]

    also check this: https://de-ch.wordpress.org/plugins/contact-form-7-dynamic-text-extension/

    #294919
    aradadiya163
    Participant

    Contact form 7 Dynamic Fields is to be setup dynamic field custom post type

    #301740
    Iggy
    Participant

    You can just use cf7 plugin features:

    Add hidden field in the form template, like

    [hidden title default:shortcode_attr]

    Then use this field

    [title]

    in the mail body.

    Works for me.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.