Add Select Option Filter

Created on 3 March 2023, over 1 year ago
Updated 14 June 2023, about 1 year 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

Needs review

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 over 1 year 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

Production build 0.69.0 2024