Pre-defined AEM form
Hi,
I am trying to create a form with validations. I chose the out of the box AEM form component. I am able to achieve validations using custom validators. Also I have written custom action.
The problem is, every time I need this form, I have to drag and drop the form components. I cannot have predefined reusable form. All form related components mandate that they are supposed to be used under a parsys. This is really limiting the re-usability of the form components. To solve this problem I need to take one of the following ways :
- Create a template and parsys and form components in the template. Use this template to create pages and get the predefined form. This has a disadvantage. This is still not a reusable component but a standalone template and cannot be used in conjunction with other components.
- Dynamically add components to parsys ? Can anyone please shed some light on this ?
- Create a custom parsys extending the existing one to add some form components by default ? Can this be done ? If yes how ?
