Create form and submit to DB in /etc path for admin user in author mode
Hello all,
I want to create a form page in /etc path for specific admin user, the form with couple of fields and submit data in mysql db.
This is what I am doing here:
I have created the form component 3 fields with add button. I have new page in /etc folder in my project folder which has sling:resourceType to my new component. It is showing well and has list of the existing data in DB.
To make it visual to you, please look at here, it is something like this page: http://localhost:4502/etc/acs-commons/reports.html
I am making in sightly and have created service and model of my object in backend.
Then I have my servlet to send my form action to that servlet.
Am I doing correct here? Any specific scenarios for form submit in author mode that I have to follow up?
Regards,
Bahar