• Resolved saopengov

    (@saopengov)


    Hi there

    Newbie question here. I just installed the plugin hoping it will deliver what it claims to, and so far it is not.

    I have this form:

    <label> Your User-Name
    [dynamictext your-username readonly “CF7_get_current_user”]
    [dynamictext your-username2 “CF7_get_custom_field key=’users-ID'”]</label>

    <label> Your First-Name
    [dynamictext your-firstname “CF7_get_custom_field key=’user_firstname'”]</label>

    <label> Your Last-Name
    [dynamictext your-lastname “CF7_get_custom_field key=’user_lastname'”]</label>

    <label> Your e-mail
    [dynamictext your-email “CF7_get_custom_field key=’user_email'”]
    [dynamictext your-email0 “CF7_get_custom_field key=’useremail'”]
    [dynamictext your-email1 “CF7_get_custom_field key=’user-email'”]
    [dynamictext your-email2 “CF7_get_custom_field key=’user_e-mail'”]
    [dynamictext your-email3 “CF7_get_custom_field key=’user_e_mail'”]
    [dynamictext your-email4 “CF7_get_custom_field key=’current_user_email'”]
    [dynamictext your-email5 “CF7_get_custom_field key=’current_user-email'”]
    [dynamictext your-email6 “CF7_get_custom_field key=’current_user_e-mail'”]
    [dynamictext your-email7 “CF7_get_custom_field key=’current_useremail'”]

    [dynamictext recipient-email “CF7_get_current_user_e-mail”]
    [dynamictext recipient-email2 “CF7_get_current_user-email”]
    [dynamictext recipient-email3 “CF7_get_current_user-e-mail”]
    [dynamictext recipient-email4 “CF7_get_current_useremail”]
    [dynamictext recipient-email5 “CF7_get_current_usere-mail”]
    [dynamictext recipient-email6 “CF7_get_user_email”]
    [dynamictext recipient-email7 “CF7_get_user-email”]</label>

    <label>Slug
    [dynamictext contact-form-context id:contact-form-context uneditable “CF7_get_post_var key=slug” ]</label>

    ….. as you can see, I getting a bit frustrated, the only fields that get populated with my logged-in info are the first field and the last field:

    I can retrieve my user-name with CF7_get_current_user and the rather useless “slug” (I did that only to see if I could actually get any other info.)

    All the fields I need to retrieve and have editable are not getting retrieved.

    WTF is wrong???

    I need all the fields:
    username
    First Name
    Last Name
    e-mail

    so far, all I can get is user-name.

    Is there a reference somewhere that I can use to find the appropriate shortcode to use?

    Any help would be appreciated – thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    To get info about user you can use this code:

    [dynamictext email “CF7_get_current_user key=’user_email’ “]

    Change the key with that you need ??

    Thread Starter saopengov

    (@saopengov)

    Hi. Thanks, that worked for email and first_name, but not last_name – LOL.

    I give up … this does not look like I will be able to use it: more for the fact that I can not send the updated info back to the user meta table. Reading is one thing, updating the info is quite another.

    I will have to get someone to custom write the forms for me. I have a 3 tiered conditional grouping, which work beautifully with this:

    Conditional Fields for Contact Form 7
    https://en-za.www.ads-software.com/plugins/cf7-conditional-fields/

    It shows a drop-down of Provinces, based on selection, it then shows one of a few drop downs of Districts, then based on selection is shows one of MANY drops downs of Local areas.

    Besides, even this add-on: “Frontend Registration – Contact Form 7” does not save those custom fields into the user meta, so what’s the point of trying to read what is not even being written to the dB.

    Thanks any-way.

    Thread Starter saopengov

    (@saopengov)

    Update:

    I got it sorted out with the “Ultimate Member” plugin ( https://www.ads-software.com/plugins/ultimate-member/ ), I created a custom registration form, and could also build the conditional form elements too (if province = A; show it’s regional choices; if region = x, show it’s local choices) … all that iput gets stored in the user-meta table, and I can access it later too with a custom “update your profile” form.

    Thanks (y)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘fields not getting their info’ is closed to new replies.