Custom Fields
Re-Envisioned
Support General Select with custom values?

  • Creator
    Topic
  • #2203
    killwil
    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 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #2204
    Anh 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
    killwil
    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 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
    killwil
    Participant

    Thank you Anh I try it and let you know.

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

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash