• Resolved Benson

    (@bens2020)


    Hello @codepeople,

    I wish to autofill the following fields for logged users submitting the form with the user data- the first name, last name, email, phone number, and country. Users are registered with the user registration plugin

    For the names, I am using the line DS; for the phone number, I am using the Phone DS; and for the country, I am using the dropdown DS; Define data source I have selected database.

    What should I fill in the following fields for each field?
    1. Column for values
    2. Table name (this I suppose is {wpdb.users})
    3. Condition (this I suppose is ID={user.id})

    Only user_email seems to work.

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

    (@codepeople)

    Hello @bens2020

    Thank you very much for using our plugin. WordPress stores the additional user data into the wp_usermeta table and not the users table.

    For example, to load the user’s first name, the columns for value would be meta_value, the table would be {wpdb.usermeta}, and the condition:

    meta_key="first_name" AND user_id={user.id}

    Please, note we are not allowed to support any customers in these forums.

    For pro or commercial product support please contact us directly on our site. This includes any pre-sales topics as well.

    Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.

    Thank you.

    Thread Starter Benson

    (@bens2020)

    Okay, noted.

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

The topic ‘Autofill Fields’ is closed to new replies.