GravityKit / GravityView

The best and easiest way to display Gravity Forms entries on your website.
https://www.gravitykit.com/products/gravityview/
245 stars 62 forks source link

Enable separate search bar functionality for multiple embedded Views on the same post/page #2014

Open tobifjellner opened 3 months ago

tobifjellner commented 3 months ago

Currently, when a search bar is used in GravityView, the generated URL includes generic query parameters (e.g., ?filter_3=Marketing&mode=all). This becomes problematic when multiple Views with search bars are embedded on a single page: a search executed in one View inadvertently applies to all embedded Views due to the non-unique filter references (e.g., filter_3).

To fix this, we could incorporate View ID into the filter name (e.g., ?filter_10_3 is View ID 10 and field ID 3). This would ensure that each View's search bar generates unique query parameters, thereby isolating the search scope to the intended View.

Implementing this would prevent cross-contamination of search results among multiple Views placed on a single page/post. This would enhance usability and provide a clearer, more predictable search experience for users.

floatytheastronaut commented 3 months ago

FreeScout #78288.
https://support.gravitykit.com/conversation/78288?folder_id=1

floatytheastronaut commented 3 months ago

FreeScout #78288.
https://support.gravitykit.com/conversation/78288?folder_id=1

rafaehlers commented 3 months ago

That was actually a "feature". We suggest that when users want to implement a UNION.