cancel(noconfirm) {
        const shouldReset = this.hook('beforeCancel', true);
        if (shouldReset && (noconfirm || confirm(this.t('confirmCancel')))) {
            this.resetValue();
            return true;
        } else {
            this.emit('cancelSubmit');
            return false;
        }
    }
Cancels the submission.
@param {boolean} noconfirm - Whether or not to confirm the cancellation.
@alias reset
@returns {boolean} - TRUE means the submission was cancelled, FALSE otherwise.