• Resolved Menno1987

    (@menno1987)


    I’ve been trying to output the current user nickname for about an hour now … not sure if this is possible with thi plugin. Perhaps someone can shed some light on this.

    I’ve been trying the code below and some variations on this:
    [dynamictext dynamicname “CF7_get_current_user key=’user_nickname'”]
    [dynamictext dynamicname “CF7_get_current_user current_user=’user_nickname'”]
    [dynamictext dynamicname “CF7_get_current_user current_user=’nickname'”]

    Any help on the matter would be much appreciated.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • I am looking for this same solution.

    I am trying to append the logged in users first name, last name and email address within the sent emails. I am able to display the username, but I am having trouble displaying the variables above.

    Any help would be appreciated.

    Thread Starter Menno1987

    (@menno1987)

    I’ve already resolved my issue.

    To create an inputfield that dynamically outputs the firstname, lastname and email are:

    [dynamictext your-firstname "CF7_get_current_user key='user_firstname' "]
    [dynamictext your-firstname "CF7_get_current_user key='user_lastname' "]
    [dynamictext your-firstname "CF7_get_current_user key='user_email' "]

    To output those data later in your email it’s going to send you can use

    [your-firstname]
    [your-lastname]
    [your-email]

    Hello,

    Thanks for the examples. They work great, however I am looking to use the “Placeholder” as well, in case the dynamic values are not set.

    Thanks for your help

    Thread Starter Menno1987

    (@menno1987)

    For placeholder can something like this
    [dynamictext* your-name placeholder "This is the placeholder text"]

    camouyer

    (@camouyer)

    Thanks !

    Hi,

    First of all, I should say that this is a great plugin. I have two questions, and I guess I can expect an answer easily understood by people like me, who were not programmers/devs.

    1. Is there any way I can combine and show both firstname & lastname in a single uneditable field?
    2. Is there a way to change the button text and deactivate it after a form submission?

    To be more precise, I have several forms, for which logged in users can apply a copy of them. I will be having hidden & disabled fields, showing only a few fields and the “apply” (submit) button to the user. Is there any possibility to change the button text to “applied” and deactivate it, once a member applies for a certain form.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How to get user nickname?’ is closed to new replies.