I need to simulate a form that is similar to the interface visible when installing any software. The "Next" and "Back" buttons appear, and all the information entered by the user is processed only when he presses the completion button.
When the user presses the back button, the previous information entered is displayed.
When the user clicks on the next button, the next screen shows him / her. All information displayed is displayed in one form.
There are 3 sections that I need to show the user.
- Section 1 - pressing the next button will display section 2
- Section 2 - pressing the back button will display section 1, and pressing the next button will display section 3
- Section 3 - pressing the previous button will display section 2, and pressing the completion button will process all the information entered in sections 1,2 and 3.
Currently, it is planned to implement the solution listed below:
- Create one form
- Add the entire item to section 1 and create the next button event that will hide the entire item shown in section 1, including the button, and show all the items in section 2.
- Create a button event for the back button for section 2 so that it hides all the elements in section 2, including the button, and displays all the elements in section 1 and the next button to hide the entire element in section 2, including the button and show the entire element in section 3
- Create a similar button event for section 3
Is there a better solution than the one described above. If yes, please describe the approach. Any help provided would be greatly appreciated.
abduls85
source share