FetchIt
An lightweight Extra for processing forms using the Fetch API
Creator: Gulomov Bakhtovar (gulomov)
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
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 withstrip_tagsandhtml_entity_decode; blankvalidation_error_messagefalls back to the lexicon key. - PHP 8 warning for undefined
$_SESSION['fetchit_called']inregisterScript()(#13). - PHP 8 warnings for undefined
$_SESSION['FetchIt']when saving or reading snippet properties. - Dead
!isset($_POST)check inaction.phpreplaced withempty($_POST)so GET requests redirect correctly. - Custom
successMessagefrom 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
nextbranch (MODX 3.2.4-pl build host).