How to use Liferay AutoFields
- Category: Liferay
- Published: Friday, 25 November 2016 09:00
- Hits: 13255
AutoFields is an AlloyUI component which can be used inside a form to dynamically add multiple elements.
Liferay uses it in many points: have you ever tried to enter a phone number or an address into your user profile? Have you noticed the
- buttons? By pressing these buttons whole portions of HTML are added (or removed) to the form, allowing you to add multiple items; and all is integrated with the history management.
So let's see how to use this component in a custom plugin.