Create button that closes form

How to do create a button that simply closes the form (without saving) and returns the user to the SharePoint list? Thanks you!

Hello @ParAvion,

To create a button that closes the form, you need to add return fd.close(); inside ‘OnClick’ property of the button.


1 Like

@mnikitina thank you. And is there a way to create a button that when clicked, takes the user to the next tab on the form?


Yes, you can use this code inside ‘OnClick’ property of the button to move to the next tab.


Please find more information about Tab control here.