Multipage form does not save data to the DB while navigating to next page
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- While using a form with multiple pages, the user has a requirement to save data to the database on the first page before moving to the second page.
Resolution
- Multi-page forms do not have the functionality of saving the data to the database on each page, as there is an option to go back to the previous page, and submit button appears only on the last page.
- However, this requirement can be fulfilled by using multiple forms and setting their success page as the next form.
- Steps:
- Navigate to Forms.
- Click on the: ellipses button of the first form, click on share, and copy the link.
- Open the second form, go to its configuration, navigate to Personalization, and add the first form URL under "Redirect URL on Success"
-
Result: Each form will be submitted (hence saved to DB) before navigating to the next form.
Did this article resolve your issue ?