yaml_forms

Categories

Component ID

2489492

Component name

yaml_forms

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

The purpose of this module is to split out a form into smaller pieces for localization. This module lives on top of form API allowing you(the developer) to break out your form render array into sub blocks to be pieced together within the form hook.

A use case would be a user profile form that captures personal details. In the western world, you might have first and last name, but if you go to Asia, a local name would be required on top of first/last. Instead of having local name hidden with CSS, with yaml_forms you could have the same form render out the necessary fields for each locale as appropriate.