I have a multipage Sitecore Form and created a custom Form Element for the same and added it. It has 2 submit buttons:
the 'Register User' button will redirect to some URL(handled by javascript in the cshtml)
for the 'Continue as guest', I want to add functionality to this button's on-click so that it goes to the next page of the Sitecore Form.
How do I accomplish point 2?
I know the OOTB feature is there to add the navigation step 'Next'. But these buttons are coming from the Custom form element (cshtml)so how do I apply the same 'Next' functionality.