WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Contact Form 7 Dynamic Text Extension] Grabbing username?

[Plugin: Contact Form 7 Dynamic Text Extension] Grabbing username?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Adam Capriola
    Member

    @adamcapriola

    Plugin Author sevenspark
    Participant

    @sevenspark

    This functionality is now available in version 1.0.4. The tag would look like this:

    [dynamictext user-email "CF7_get_current_user key='user_login'"]

    You could hide it using the new [dynamichidden] tag

    Drunkard100
    Member

    @drunkard100

    Awesome,

    I was looking for the same thing. Worked like a charm! Great plugin btw. It saved me a grip of time. 🙂

    M
    Member

    @motylanogha

    @sevenspark fine, but we would rather have this user name or email address in the email body – not in the form 🙂

    Any ideas?

    Plugin Author sevenspark
    Participant

    @sevenspark

    @motylanogha, if by “email body” you mean the actual text sent in the email, then yes, everything variable can be inserted there. If you mean the message textarea, then no – CF7 DTX works only with text and hidden inputs.

    So you could put the email/username in a hidden input if you like, e.g.:

    [dynamichidden user-email “CF7_get_current_user key=’user_email'”]

    Then place the [user-email] tag in the CF7 message body to send it.

    You could not prepopulate the message textarea on the client side with this value, however.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Contact Form 7 Dynamic Text Extension] Grabbing username?’ is closed to new replies.