• Resolved norlam

    (@norlam)


    First of all, thanks a lot for this usefull plugin.

    The problem
    Suppose I have a Multiselect/Other field named “Color” with the flollowing 9 choices: 1) White, 2) Yellow, 3) Red, 4) Orange, 5) Green, 6) Blue, 7) Indigo, 8) Brown, 9) Black.

    And suppose 2 users typed “Gray” in the write-in 10th choice named “Other”, and 3, “Maroon”.

    My question
    When using [pdb_list] with filters and operators, is there a way to display the content of these 5 write-in choices and ONLY them?

    Regards,

    • This topic was modified 4 years, 9 months ago by norlam.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Filters are used to determine which records get shown, they do not determine what values are shown.

    If you want to show a list that only shows the records that have a write-in value, you can do that by filtering out all records that have chosen the defined values.

    If you just want to show what all the write-in values are, you’ll need to create a custom template for that, this is not something the plugin can do without some custom code.

    Thread Starter norlam

    (@norlam)

    Thanks for your rapid response.

    You confirm what I finished to think.

    Regards

    • This reply was modified 4 years, 9 months ago by norlam.
    Thread Starter norlam

    (@norlam)

    Just a little sub-question.

    You said:

    “If you want to show a list that only shows the records that have a write-in value, you can do that by filtering out all records that have chosen the defined values.”

    Suppose a user check “White” and “Yellow”, and type “Gray” as a write-in value. His record will contain 3 values: “White, Yellow, Gray”.

    I understand what you said as it is possible to show “White, Yellow, Gray” as a result by “filtering out” White and Yellow. But how to do this?

    [pdb_list filter=”color~White&color~Yellow&color!” fields=”color”] will not show this record, since White and Yellow have been checked.

    • This reply was modified 4 years, 9 months ago by norlam.
    Plugin Author xnau webdesign

    (@xnau)

    This won’t work for a multiselect, as you’ve seen. For a complex filter like that, you’d have to use some custom code, you can’t do it just with shortcode filters.

    Thread Starter norlam

    (@norlam)

    Ok.
    That’s why I failed to do.
    Thanks.

    I have the exact same question. Roland, do you have any examples of how such custom code for selecting “Other” / write-in values would roughly look like? Thanks in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to show “Other” content field’ is closed to new replies.