I have a multipage sitecore Form and created a custom Form Element for the same and added. It has 2 submit button:

enter image description here

  1. the 'Register User' button will redirect to some url(handled by javascript in the cshtml)

  2. for the 'Continue as guest' , I want to add functionality to this button's onclick so that it goes to the next page of the Sitecore Form.

How do I accomplish point 2.

I know ootb feature is there to add the navigation step 'Next'. But these buttons are coming from Custom form element (cshtml)so how do i apply the same 'Next' functionality.


I think you can refer this and utilize the custom scripts method described. You can easily use the method described in the lines "call js function from external file" which in your case would the cshtml file of yours.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.