Code to Reset Suitelet Page (Cancel button).

Suitelet Script:

form.addButton({
                id: 'custpage_cancel_button',
                label: 'Cancel',
                functionName: 'cancel'
            });

Client Script:

 function cancel() {
        history.back();
    }

Leave a comment

Your email address will not be published. Required fields are marked *