Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When applying either the "List of checkboxes" or the "Dropdown" widget to display facet information; if you check/select a facet to filter results by and click submit you receive the following error:
Drupal\Core\Form\EnforcedResponseException: in Drupal\Core\Form\FormBuilder->buildForm() (line 349 of /var/www/build/html/core/lib/Drupal/Core/Form/FormBuilder.php).
and the results of are not filtered by the selected item(s).
Using:
search_api alpha13
Search_api_solr alpha3
facets alpha2
search_api_page alpha8
Comments
Comment #2
borisson_This can be related to the integration w/ search api pages or search api solr. Let's start by writing some tests for search api page so we can eliminate that.
See #2711455: Write tests for the integration with search api pages and #2711169: Enabling Facets creates extra query requests to Solr on a Search_api_page search page.
Comment #3
StryKaizerAs we are moving widgets into GET requests, this can be closed.
see #2658678: Checkbox widget does not enable multiple facet's values at a time and #2713875: Use GET request for dropdown widget