Support

Account

Home Forums General Issues How can I filter a post object field based on another field?

Solved

How can I filter a post object field based on another field?

  • Ok so here’s what I’m trying to do:
    I have three post types:
    -make
    -model
    -item

    Model has a post object field that links to make.
    What I’d like to do, if possible, is have two fields for item (or a filter) so that on an item I can select a make and then have the model field just show me models for that make.

    Is this possible with this plugin?

  • Hi @surrealroad

    Currently, no, this is not possible.

    You can however, create the 2 fields (post object fields) to display all the available make / model data. Then you could use some custom jQuery code to trigger an AJAX call when you change the make value. This could then go off and return all the models that are appropriate, and then hide the ones (options tag within select field) that are not returned.

    Hope that helps.

    Thanks
    E

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

The topic ‘How can I filter a post object field based on another field?’ is closed to new replies.