FetchIt

An lightweight Extra for processing forms using the Fetch API

Creator: Gulomov Bakhtovar (gulomov)

Need help installing this extra?

About FetchIt

MODX Revolution has an extra FormIt, which implements sending and processing forms, but it works by standard method of the browser, ie, with a page reload. But the modern web is demanding and the progressive step is to process them "on the fly". This is exactly what you need FetchIt for, which uses FormIt, but you can also use your own snippet.

Information

Released
September 23, 2026

Supported Database
MySQL

License
GPLv2

Supported Versions
3.0 - Current

Downloads
2,887

Documentation
FetchIt Documentation

New in 3.1.4-pl

[3.1.4] - 2026-09-09

Fixed

  • Form-level success and validation messages now update in the form on AJAX submit via [data-success] and [data-validation-error] (#15). Custom templates need these attributes instead of [[+fi.success:…]] conditionals for AJAX.
  • Whitespace-only FormIt field errors (e.g. fi.error.email) no longer mark the form as failed (#14). Placeholders are sanitized with strip_tags and html_entity_decode; blank validation_error_message falls back to the lexicon key.
  • PHP 8 warning for undefined $_SESSION['fetchit_called'] in registerScript() (#13).
  • PHP 8 warnings for undefined $_SESSION['FetchIt'] when saving or reading snippet properties.
  • Dead !isset($_POST) check in action.php replaced with empty($_POST) so GET requests redirect correctly.
  • Custom successMessage from the FetchIt snippet call is used in the AJAX success response.

Changed

  • Frontend build dependencies bumped to Rollup 4; CI and release workflows added for the next branch (MODX 3.2.4-pl build host).

Current releases

3.1.4-pl
View | Download
September 23, 2026
3.0 - Current