Title: Autofill Fields
Last modified: July 1, 2022

---

# Autofill Fields

 *  Resolved [Benson](https://wordpress.org/support/users/bens2020/)
 * (@bens2020)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/autofill-fields/)
 * Hello [@codepeople](https://wordpress.org/support/users/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](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/autofill-fields/#post-15789042)
 * Hello [@bens2020](https://wordpress.org/support/users/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](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products).
   We will happily answer this and any other questions you can have [on our own site](https://cff.dwbooster.com/contact-us).
 * Thank you.
 *  Thread Starter [Benson](https://wordpress.org/support/users/bens2020/)
 * (@bens2020)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/autofill-fields/#post-15789260)
 * Okay, noted.

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

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

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Benson](https://wordpress.org/support/users/bens2020/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/autofill-fields/#post-15789260)
 * Status: resolved