This quick start takes you from the Data Definition (DD) and Field Definition (FD) contract to verified persistence. The full reference remains available for advanced cases.
When dbxForm fits
- Create or edit records
- Validated filter and configuration masks
- Multi-level or AJAX updated forms
The mandatory procedure
- Define the Data Definition (DD) and the language-specific Field Definition (FD).
- Initialize
dbxForm, then set the data, record ID (RID) and action. - Add all fields before checking whether the form was submitted.
- Evaluate
submit()anderrors(). - Persist through
save_post()and always render throughrun().
$form = dbx()->get_system_obj('dbxForm');
$form->init('customer-edit', 'customer-edit');
$form->_dd = 'crm|customer';
$form->_fd = 'crm|customer-form';
$form->_data = $data;
$form->_rid = $rid;
$form->add_flds();
if ($form->submit() && !$form->errors()) {
$form->save_post($form->_dd, $rid ?: 'new');
}
return $form->run();
Verification and acceptance
Verify required fields, invalid input, duplicate submissions, record creation and updates, permissions, and the Ajax partial reload before acceptance.
All variants and contractsCallbacks, field types, state, uploads and extended patterns.
Open the full reference