Home Forums Plugin Support WP User Frontend Pro Pre populate select field

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  obouilland 6 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3602

    obouilland
    Participant
    Post count: 8

    Hi.

    I have a function that return an array of value/text. I want to use it to pre populate a select field in a form. Which hook can I use, and how can I reach a specific select box in my form ?

    Thank you by advance,

    Olivier

    #3614

    Tareq Hasan
    Keymaster
    Post count: 2831

    You can use the Action Hook field I think. That field has a example code, you can display your form in that function. Check the developer docs.

    #3629

    obouilland
    Participant
    Post count: 8

    Hi tareq.

    I have already seen the developer docs, but I cannot see an example of how to use it, and there is no documentation on how to reach a field. Can you develop your documentation on it ?

    Thanks.

    #3631

    Tareq Hasan
    Keymaster
    Post count: 2831

    I have updated the docs with an example action hook field code. Take a look.

    #3632

    obouilland
    Participant
    Post count: 8

    Thanks Tareq, I will have a look at this example.

    #3702

    obouilland
    Participant
    Post count: 8

    Thank you Tareq, great example, works perfectly for me. Just one thing : the hook field don't appear in the admin section (in the wpuf custom field list of a node). It is not an issue to me, but it will be better if it could appear.

    Thanks again.

    Olivier

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

The topic ‘Pre populate select field’ is closed to new replies.