Create button that closes form

Hello,
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.

image

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?

@ParAvion,

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

fd.container('Tab0').nextTab();

Please find more information about Tab control here.