Select with custom values?

Support General Select with custom values?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2203
    killwilkillwil
    Participant

    Hello,

    Is it possible to fill an advanced select with custom values?
    And how? Is there an example somewhere?

    Killwil

    PS: For the forum it will be great to have a search box 😉

    #2204
    Anh TranAnh Tran
    Keymaster

    Hi, why don't you just register all values when defining the field? What is your case when you need to fill the advanced select with custom values?

    PS: I will add a search box to the forum 🙂 Thanks for the idea.

    #2205
    killwilkillwil
    Participant

    Hi, for example I would like to fill with published gravity forms (which are in a specific tables)... It's dynamic datas so I cannot prefill them...

    #2214
    Anh TranAnh Tran
    Keymaster

    I think it's possible to get gravity forms when register meta boxes. The hook rwmb_meta_boxes fires at admin_init and at that time everything is ready. You can use $wpdb to query the database to get the data you need and put it in the options parameter.

    #2261
    killwilkillwil
    Participant

    Thank you Anh I try it and let you know.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Select with custom values?’ is closed to new replies.