Add ability to disable AJAX for Views exposed form submit

Created on 25 August 2017, about 7 years ago
Updated 21 December 2023, 11 months ago

Problem/Motivation

Provide configuration to disable AJAX for Views exposed form submissions.
Typical Use Case: A Non-AJAX views exposed form submission with an AJAX pager. This use case is common when there are non-view related content on the page that needs to change based on the views results. Example: Facet blocks for Search API views.
Currently, if the view is enabled to "use ajax", then the form submission and pagers are setup to use AJAX.

Proposed resolution

Add a new option for "Disable AJAX form submit" to the default views exposed form plugin.

Remaining tasks

New tests for the "Disable AJAX form submit" option.

User interface changes

Admin UI changes: The views exposed form options now have an option for "Disable AJAX form submit" when the display has AJAX enabled.

API changes

None.

Data model changes

The config schema type "views_exposed_form" has a new "disable_ajax_submit" property. See changes to "core/modules/views/config/schema/views.data_types.schema.yml".

Release notes snippet

A views exposed form can now disable AJAX for the form submissions while allow other view plugins such as pagers to still use AJAX.

Feature request
Status

Needs work

Version

11.0 🔥

Component
Views 

Last updated about 2 hours ago

Created by

🇺🇸United States recrit

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024