Foren

How to save form data in database by using structure and template ?

lokesh gorrela, geändert vor 7 Jahren.

How to save form data in database by using structure and template ?

Regular Member Beiträge: 173 Beitrittsdatum: 09.03.16 Neueste Beiträge
Hi

I created one form by using structure and template. When i clicked on submit button form data should be store in database. If anybody knows please give me replay.

Thank's
Regard's
Lokesh
thumbnail
Samuel Kong, geändert vor 7 Jahren.

RE: How to save form data in database by using structure and template ?

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
Are you referring to web content structure and templates? Web content isn't really designed to handle form input.
lokesh gorrela, geändert vor 7 Jahren.

RE: How to save form data in database by using structure and template ?

Regular Member Beiträge: 173 Beitrittsdatum: 09.03.16 Neueste Beiträge
yes. can you tell any approach to achieve this requirement through webcontent(Structrue and Template);
thumbnail
Paras Jain, geändert vor 7 Jahren.

RE: How to save form data in database by using structure and template ?

New Member Beiträge: 16 Beitrittsdatum: 09.06.09 Neueste Beiträge
As Samuel mentioned above, Web Content Structure and Templates are not designed primarily to create forms. You can however, use them to creates forms if you really want to. But you can just go as far as creating form, you will have to bind/submit that form to a controller and backend code which will take care of gathering the form inputs and saving it to database.
lokesh gorrela, geändert vor 7 Jahren.

RE: How to save form data in database by using structure and template ?

Regular Member Beiträge: 173 Beitrittsdatum: 09.03.16 Neueste Beiträge
ok thank you
thumbnail
Samuel Kong, geändert vor 7 Jahren.

RE: How to save form data in database by using structure and template ?

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
Hi lokesh

Web content structure and templates isn't designed for this. If you're using Liferay Portal 7.0, try taking a look at using Forms. If you're using Liferay Portal 6.2, try looking into Web Form or Dynamic Data List Form.
lokesh gorrela, geändert vor 7 Jahren.

RE: How to save form data in database by using structure and template ?

Regular Member Beiträge: 173 Beitrittsdatum: 09.03.16 Neueste Beiträge
ok thank you.