• Resolved m4t1eu06

    (@m4t1eu06)


    Hi,

    i have a form (CF7) wich is automatically filled with the user information (logged-in user) and I would like a field with the user’s phone number.

    On the basic admnistration page of wordress, the one to manage the user’s account, it’s not possible to have a field “phone number”.
    With WP-Members, i have now, at the bottom of this administration page, fields i’ve created and a phone number one (“numero de telephone” in french)

    https://ibb.co/Hz7xy1S
    [url=https://ibb.co/Hz7xy1S][img]https://i.ibb.co/LtSJybF/capture-20211014193140203.png[/img][/url]

    Here are the fields i’ve created with WP-members:
    https://ibb.co/B44X74j
    [url=https://ibb.co/B44X74j][img]https://i.ibb.co/wJJ9bJC/capture-20211014193656223.png[/img][/url]

    I would like to use some of those fields (filled for each user) inside contact form 7. I mean, is there any shortcode related to those fields that i could write in CF7?

    and here is my website page with the form wich automatically pick up the informations on the user account (informations available on the basic administration page of wordress, the one to manage the user’s account):
    https://ibb.co/XVq9PZh
    [url=https://ibb.co/XVq9PZh][img]https://i.ibb.co/3knwbyD/capture-20211014193848553.png[/img][/url]

    I want the website page (and the form) to pick up automatically the field “phone number” (“numero de telephone”) that i’ve created with WP members exactly as it already picks up all the other informations from the user’s account.

    I hope i explained (more or less) well and that you can help me guys

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The plugin uses standard WP user meta for any custom user fields. So any solution that allows you to populate CF7 fields with an existing user meta value will work.

    Thread Starter m4t1eu06

    (@m4t1eu06)

    OK, i understood!!

    I didn’t know how to populate with the fields i created with wp-members.

    For the others that will read this thread, here is how to write the meta:
    for example to populate a CF7 field with the meta “numero de telephone” (have a look to the picture in the previous message), i have, in CF7:

    <label>Numéro de téléphone*</label>
    [text Numrodetlphone default:user_numero_client]

    So it means that i had to had “user_” before the meta so that contact form populate the field

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP members shortcode and Contact Form 7’ is closed to new replies.