Add Search By State, Country views text filter support

Created on 25 March 2024, 8 months ago
Updated 5 April 2024, 8 months ago

Problem/Motivation

Currently when state field is exposed - we can search only by state code. But it will be also beneficial to provide a support for search by State full name and full views text field support.

Proposed resolution

I think we should have 2 options available for the end users here:

  1. Add a possibility to perform full text search in country, state fields as for any there text field (equal, not equal, word, all word, regex etc.)
  2. Make the state filter depends on selection in Country field. Similarty how it works on Edit form widget.

Remaining tasks

1. extend the module schema, add fields for country name, state name to be saved in DB
2. Provide the support for saving the country name, state name to the database.
3. Add new views filters plugins.

User interface changes

Add configuration on the views filters plugins.

API changes

N/A

Data model changes

Add 2 new fields to the field structure:
1. Country name (varchar, 255)
2. State province name (varchar, 255)

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada dstorozhuk Chicago πŸ‡ΊπŸ‡Έ, Toronto πŸ‡¨πŸ‡¦, Kyiv πŸ‡ΊπŸ‡¦

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

Comments & Activities

Production build 0.71.5 2024