I'm required to validate a panel on click of the next button.
I was able to achieve this using the method described here https://www.tothenew.com/blog/tips-tricks-for-aem-6-2-form-development/#comment-568864
But to complete the form also need to:
1) Also apply this rule to the next button rendered on small screens/mobile devices
2) Disable the ability to navigate forward by clicking on the tabs
How can I do this?