Custom Fields
Re-Envisioned
Support MB Frontend Submission How to set Taxonomy field value(s)?

This topic contains 2 replies, has 2 voices, and was last updated by  Anh Tran 1 year, 11 months ago.

  • Creator
    Topic
  • #7396
    Resolved
    rmackovic
    Participant

    Hi,

    We are using Taxonomy field (‘field_type’ => ‘checkbox_tree’) with MB Frontend Submission to create posts with predefined custom taxonomy values so we have tried to use this filter to set values for taxonomy checkbox tree: rwmb_{$field_id}_field_meta.

    The problem with this is that custom taxonomy values are not saved with the post unless checkboxes are manually selected which is the thing we are trying to avoid.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #7414

    rmackovic
    Participant

    We have managed to achieve this with some JS (triggered change on inputs on ready) but it’s not working if checkbox inputs are disabled: ‘attributes’ => array( ‘disabled’ => true )…

    #7431

    Anh Tran
    Keymaster

    Hi,

    I’ve just tested with the filter and it works. Please see my video.

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

You must be logged in to reply to this topic.