Add Select Option Filter

Created on 3 March 2023, almost 2 years ago

Problem/Motivation

Hello,

While retrieving the contents from a JSON, some of these contens can be tags or other categorization type fields.
However all the filters are a textfield input and we may want to use a simple select to filter the view.

Proposed resolution

Created a patch with an exposed form style that changes the type of the exposed field to a select with the available field options.

✨ Feature request
Status

Active

Version

1.4

Component

Code

Created by

πŸ‡΅πŸ‡ΉPortugal tmiguelv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tmiguelv
  • Status changed to Needs review almost 2 years ago
  • πŸ‡΅πŸ‡ΉPortugal tmiguelv

    Please review

  • πŸ‡΅πŸ‡ΉPortugal tmiguelv

    I've added and option to select the type of widget it will use (checkbox, radios or select), a collapsible details element and multiple values support

  • πŸ‡ΊπŸ‡ΈUnited States lunazoid

    Thank you! I am implementing a view where filtering with select options would be necessary, and this does work very well! One thing I had to change however was in your switch condition for the filter, there is no default for the "select" option when it is neither collapsible nor multiple. It seems like we can get rid of the "elseif" and make that a default, and it will work well.

  • πŸ‡ΊπŸ‡ΈUnited States anblee

    Hi, thanks for this patch, however I cannot apply the patch. Maybe I'm doing something wrong? This is referencing the 3345790-3.patch

  • πŸ‡¨πŸ‡·Costa Rica thony1199

    They recently updated to version 2.0.2 and the patch stopped working, so I adjusted it a bit, to have it for that version of the module

Production build 0.71.5 2024