Moving from DACHCOM FormBuilder 5.x
pimkit:forms:import-dachcom turns FormBuilder forms into PimKit drafts. It never changes or deletes
anything in FormBuilder, and never overwrites a PimKit form.
Run it
Section titled “Run it”Start with a dry run and read the report:
# From the FormBuilder tables, when they are still in the database (the usual case on an upgrade)bin/console pimkit:forms:import-dachcom --from-database -l de -l en --dry-run --report=var/dachcom-import.json
# Or from YAML exports ("Export" in the FormBuilder admin), one file or a folder of thembin/console pimkit:forms:import-dachcom var/form_export_3.yaml --name=contact -l de -l en --dry-runThen run it again without --dry-run.
| Option | Meaning |
|---|---|
--from-database |
Read formbuilder_forms, formbuilder_output_workflow and formbuilder_output_workflow_channel. Serialized columns are read without creating PHP objects |
--form=NAME |
With --from-database: only these forms (repeat for several) |
--name=NAME |
PimKit name when importing a single form. Default: the FormBuilder name (or file name), made safe: Kontakt Anfrage becomes kontakt_anfrage |
-l, --locale |
Languages for texts (repeat). Labels that are translation keys are translated with Pimcore’s website translations into each one. The first is the main language |
--folder=ID |
PimKit form folder for the new forms |
--publish |
Publish each form when it is complete. Otherwise, or when something is missing (like an email without recipient), it stays a draft |
--report=FILE |
Write the whole report as JSON |
Every imported form gets a form.imported audit entry. YAML file names like form_export_3.yaml only carry the
FormBuilder id, so pass --name there.
The report
Section titled “The report”Each form lists what needs a look (review) and what could not be carried over (skipped), with the path in the
FormBuilder data. Nothing is dropped without a line in the report. Typical review items: renamed fields (PimKit field
names are lowercase), labels that are translation keys with no translation, Email documents that still use
FormBuilder placeholders.
What maps to what
Section titled “What maps to what”Fields
Section titled “Fields”| FormBuilder | PimKit |
|---|---|
text |
text, or email when it has the email check |
textarea |
textarea |
integer |
number with step 1 |
checkbox |
checkbox (not_blank means it must be ticked) |
choice |
select (with multiple), radio (expanded) or checkbox_group (expanded and multiple). Groups are flattened |
choice_dynamic |
select / radio / checkbox_group without choices (review: add them, or use data object choices) |
country |
select with all countries, labels in each language |
date, birthday |
date |
date_time |
date (review: the time is no longer asked) |
time |
text that accepts HH:MM |
hidden |
hidden with its value |
html_tag |
heading for h1 to h6, otherwise html |
snippet |
empty html (review: copy the text) |
dynamic_multi_file |
file with item limit, size limit (MB) and allowed extensions as MIME types |
submit |
the form’s submit label |
recaptcha_v3, friendly_captcha, cloudflare_turnstile |
the form’s captcha. Enter the keys in PimKit Forms settings |
container fieldset |
its fields, after a heading with the legend |
container repeater |
its fields, asked once (review) |
math_captcha, custom types |
skipped |
Widths come from the field template: col-*-6 is half, col-*-4 a third, anything else full.
Checks
Section titled “Checks”not_blank → required, email → email field, length → min/max length, regex → pattern (without delimiters;
flags or “must not match” are skipped), range → min/max on numbers, count → min/max selected, url →
pattern https?://\S+. Other checks are listed in the report.
Conditional logic
Section titled “Conditional logic”Each rule’s conditions (all must match) become field conditions on the target fields:
| FormBuilder comparator | PimKit operator |
|---|---|
contains (comma list) |
in |
is_value |
in with one value (also matches one ticked choice) |
is_not_value |
not_equals |
is_checked / is_not_checked / is_empty_value |
not_empty / empty / empty |
is_greater / is_less |
gt / lt |
| FormBuilder action | PimKit effect |
|---|---|
toggleElement show / hide |
show / hide |
constraintsAdd with not_blank |
require |
toggleAvailability disable |
disable |
constraintsRemove, changeValue, toggleClass, triggerEvent, successMessage, switchOutputWorkflow |
skipped |
A condition on several fields becomes one rule per field, and all must match (review).
Output workflows
Section titled “Output workflows”| FormBuilder | PimKit |
|---|---|
email channel |
email action with the channel’s Email document as template. Recipients and subject come from the document. When the only recipient is a field placeholder like %Text(email);, it becomes a confirmation_email to that field |
object channel, new object |
data_object action with class, folder and field mapping |
object channel, existing object |
skipped |
api, funnel channels, funnel workflows |
skipped |
| Success management | success message, page or URL of the first workflow |
| Double opt-in | on, with the first email field |
With several workflows, the actions of the first one are on and the others are added switched off. PimKit uses one Email document for all languages; when FormBuilder had one per language, the default one is used (review).
Email documents keep their FormBuilder placeholders. PimKit passes each field as field_<name>, so
%Text(email); becomes %Text(field_email);. Or clear the template to use the built-in table.
After the import
Section titled “After the import”- Open each form in Studio (PimKit > Forms > Forms), go through the review items and publish.
- Swap the FormBuilder areabrick or Twig call for
{{ pimkit_form('name') }}or the PimKit form areabrick. - FormBuilder data stays untouched. Remove the FormBuilder bundle once every form runs on PimKit.
Code: PimKit\FormsBundle\Migration\Dachcom\ (DachcomExportReader, DachcomConverter, DachcomImporter),
Command\ImportDachcomCommand. Fixtures in tests/fixtures/dachcom/ use the FormBuilder 5.3 export format.
Studio check: tests/e2e/dachcom-import.e2e.cjs.