• Hi,
    Thank you for that extension, I have already put few text boxes into my CF form.
    I have a problem, I would like to insert as default value of textbox username of logged in user, but I can not get this value by get_current_user. To register users I use plugin that allows me to get this value on post/site area by entering just e.g. [user-data] or [user-data field_name='First Name']. In php I could probably echo this values like:

    $User  = new FEUP_User;
    echo $User->Username;
    echo $User->User_ID;
    echo $User->Get_Field_Value("field name");

    Is this possible to get this values in CF?
    Thanks a lot in advance for replay.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cccook

    (@cccook)

    Hi, could you help me. If i put e.g. [dynamictext postname "user-data field_name='First Name'"] I got as a result a field with default value: <span class='ewd-feup-user-data'>Name</span>.
    It is almost ok but how to clear out this <span class='ewd-feup-user-data'></span>.

    Plugin Author sevenspark

    (@sevenspark)

    That span is returned as part of your shortcode – that’s not something that this plugin can control. Probably your simplest solution is to make a duplicate of that shortcode and customize it to your needs.

    You can also try simply using the built in shortcode:

    CF7_get_current_user

    Hope that helps,

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get value of username registered by other plugin’ is closed to new replies.