April 10, 2020
Estimated Post Reading Time ~

How to Store Form Data?

Task: Create a page that has a form by default where we can add different form fields like text, radio buttons, file upload and so on..

Sol:
Step 1: Create a template and add properties as shown in the following example. Here the template name is 'formtemplate'
Also, add resourceType property to the template.


Step 2:  Add property called Sling:resourceType as 'foundation/components/parsys'

Step 3: Will up soon

Note:
1. While configuring Action to store the data, we specify the path as follows:
Eg: /tmp/formdata or /tmp/formdata/

To Override the form data, We have to specify like
/tmp/formdata


To store data in another node, We have to specify like
/tmp/formdata/


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.