Forums

Displaying one section or another based on which button user presses

matteonono 15 May, 2020
Hi, I'm not so good in programming with chronoforms and I'm struggling since hours with this:
​
I created a multi page popup form with 3 pages and it works perfectly, but in the 2nd page I need an additional button to let the user to go back to the first page. In the forum I found several threads about it but the only solution seems to be using some reload function, and unfortunately this does not work if you are in a popup Chronoforms window.
​
I tried using two submit buttons in the second page (section 'two') , the first named 'Previous' with value 'previous' and the second named 'Next' with value 'next'. In the Setup tab, in the landing event of the second page (where normally I have the Display section for the third page) I tried using a Event Switchers based on the value of my submit buttons (using 'next' or 'previous' as Data provider) but I can't get my goal: I would like to have a Display section for the third page/section when the user press submit button called "Next", and a Display section for the first page/section when the user press submit button called "Previous".
​
Is it the right way? Someone can help me? Thank you 😒
Max_admin 15 May, 2020
Use a link to go back to page 1 instead
​
If you can download v7 beta2, there is a Link behavior in the button, when you enable it you can select a form page to point to!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
matteonono 15 May, 2020
sounds great!! Thank you, I try it immediately
This topic is locked and no more replies can be posted.