Introduction
Multi-step forms improve user experience by breaking down large forms into manageable steps, resulting in better data collection and user engagement. This article will look at how to develop multi-step forms with Liferay objects. This blog explains how to construct efficient forms, from identifying objects to ensuring seamless navigation between steps. By the conclusion, you’ll know how to include these shapes into your projects easily.
Prerequisites
- Liferay DXP/Portal 7.4.ga125 or letter.
- Basic knowledge of Liferay
Environmental Requirements
- Liferay Portal or DXP
Steps to implement a multi-step form
01) Create the Objects
- To develop a multi-step form, create a Liferay object and then put the fields you want in the form.
- If you are unaware of the Liferay objects, please click here.
02) Use Form Container and Stepper form component
- After developing the object, Navigate to your page, then edit it and add a form container.
- If you would like to use a single form, simply choose the object and then the fields. So the form container will generate one form for you based on your object fields and map those form fields to your objects.
- We’re developing a multi-step form, so we’ll need to put a stepper into the form container, which is one form component.
- Please refer to the image below for a better understanding.


- As seen in the images above, we first place the form container, then choose the object and fields that we want from the first step, and then finally place the stepper in the form container.
03) Manage the steps and object fields.

- As seen in the image above, click on the form container and select the steps from the right-hand general menu, which allows you to increase or decrease the number of steps.


- We take three steps, placing the form container in the second and third steps, and selecting the object and fields that we want in the second and third steps based on our needs.
04) Use of Previous, Next, and Submit buttons


- Liferay includes a range of form components, as well as a form button component that allows you to move to the previous and next steps in a multi-step form.
- Simply place the form button in the form container and select the type of button from the right-hand general menu.
- You must place the submit button at the end of the stepper form; otherwise, you will be unable to submit it.
- After putting the buttons, publish the page to use the multi-step form.
Conclusion
Finally, multi-step forms created with Liferay Objects provide an effective solution to speed up complex data collection while improving the user experience. You can use Liferay’s flexibility to design dynamic, well-structured forms that are specific to your business needs. With the right layout and planning, these forms can ease procedures and improve data accuracy. Start adopting multi-step forms today to elevate your user interactions.