Form "Default Value" User Meta Data

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 7 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #417680

    emendesign
    Full Member
    Post count: 74

    How can I pull user meta data as a default value into a GD post submission form. For instance I want to automatically insert an id number that was setup and is saved in the users profile. So the user doesn’t have to input it manually since we already have that information saved in their user profile.

    I know with Gravity Forms you would use something similar to this {user:uwp_id} and include it as a placeholder. Will that work in GeoDirectory forms and if not how can I accomplish this?

    #417780

    Alex Rollin
    Moderator
    Post count: 27815

    This function should help you load user data:

    https://codex.wordpress.org/Function_Reference/get_userdata

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount