 | Form components requires FarCry 4.1. They are not available in earlier versions of FarCry. |
Overview
Finally we can use Form Tools in forms outside the COAPI. With the added bonus of being able to manage and pass around forms as components.
Notes
- Added a 'forms' package.
- Components in this directory should either extend the forms abstract component or another form.
- Forms can be put in core, plugins, or the project as with types
- Property metadata is identical to that of types and rules with the exception of array and uuid properties which are disabled
- A form doesn't have setData, getData, beforeSave or afterSave, instead supporting a 'process' method with a fields (struct) argument. This method should perform an processing the form requires and return the fields.
- Formtool tags deal with forms exactly the same way as types - the name of a form can be used whereever the name of a content type can.
- A new formtool WDDX which provides a way to embed data described by a form component as a property in a content type or rule.