aidsoul / bitrix-form
Bitrix Forms
v2.1
2026-02-27 12:27 UTC
Requires
- respect/validation: ^2.2
This package is auto-updated.
Last update: 2026-02-27 12:30:45 UTC
README
AJAX-форма компонент для Bitrix CMS с валидацией и отправкой данных.
Documentation
For detailed documentation, see the docs folder:
- Documentation Index - Overview and navigation
- JavaScript API - Complete JavaScript API reference
- PHP API - Complete PHP API reference
- Examples - Common usage scenarios
Quick Start
Installation
- Copy the
local/components/aidsoul/formsfolder to your project - Copy the
srcfolder to/local/php_interface/or configure autoload
Component Call
$APPLICATION->IncludeComponent( "aidsoul:forms", ".default", array( "AJAX" => "Y", "FORM_NAME" => "contact", "FORM_ID" => "contact-form", "TITLE" => "Связаться с нами", "SUBMIT_TEXT" => "Отправить заявку" ) );
JavaScript AJAX (without BX.ajax)
// Using vanilla JavaScript Ajax class new Ajax({ url: '/api/endpoint', method: 'POST', data: { name: 'John' }, success: function(data) { console.log(data); } }).execute(); // Or using static helpers Ajax.post('/api/submit', { name: 'John' }) .then(function(data) { console.log(data); });
Features
- AJAX form submission without page reload
- Server-side validation
- File uploads
- CSRF protection
- Flexible field configuration
- Email event support
- Custom validation methods
- Error message localization
- Vanilla JavaScript AJAX class without BX.ajax dependency