The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Select user and retrieve meta

Labels

This Discussion is public

Notifications

I have the registration add on and will have users register for subscriber level accounts with all their information.

I then am creating forms that only ad admin will have access to. How can I have a dropdown that will show the last name, first name of all registered users (alphabetized) for the admin to choose who they're filling it out for.

Upon selecting the user, I then want some meta fields to be populated with what is currently in the user meta fields. This is so if the user changes those values later, this form entry has what was there when the form was submitted.

What's the best way of doing this?

Example:

Dropdown field of users last name, first name.
Once one is selected the fields for weight, waist size, and height will lookup those meta values from the selected user and enter them into read only single text line fields.

This is easy to do if the person filling out the form is needing those meta fields from their own user. But in this case it's an admin filling out the forms and needs to select the user and have it populate with that selected users information.

Hi John,

It sounds as though using the lookup field would be ideal.

You could have a drop down lookup field which links to your user registration form and then set the rest of your fields on your form (weight, waist size etc) as normal field but then select "Dynamically retrieve the value from a Lookup field" and link through to the same registration form.

You can also select "Watch Lookup fields" and choose your dropdown so the form will wait for that to be populated before looking up the matching info from the linked entry and populating the rest of the fields.

I use the same technique for creating invoices and pulling in my clients contact details.

Hope that makes sense.

Chris

There's more information on doing this here: https://formidableforms.com/knowledgebase/lookup/#kb-populate-fields-with-values-from-a-selected-entry

Thanks

Chris

Thanks so much Chris! That worked perfectly and will come in handy in a lot of other areas too.

Discussion closed.