How to use the HandleContinue method after completion of signing process? #452
Unanswered
tarunjawla
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@tarun2001jawla use webhooks to download signed documents - documents can't be downloaded form the client-side javascript |
Beta Was this translation helpful? Give feedback.
1 reply
-
Use javascript ‘completed’ event
https://www.docuseal.com/docs/embedded/form#javascript.completed
… On Mar 11, 2025, at 12:27 PM, Tarun Jawla ***@***.***> wrote:
Okay, but how can i call some method after completing the process?
—
Reply to this email directly, view it on GitHub <#452 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABJK6JGRF74YBDMRJBUDLRT2T23ARAVCNFSM6AAAAABYYPTHF6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENBWGAYTIMA>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,i am working with docuseal signing form and i want to save the signed document by calling the method handleContinue can anyone help me with this?
`import {
Component,
OnInit,
OnDestroy,
NgZone,
ViewChild,
ElementRef,
ChangeDetectorRef
} from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd/modal';
import { NzMessageService } from 'ng-zorro-antd/message';
import { EntityAgreementService } from '../../../services/entity-agreement.service';
import { Router } from '@angular/router';
import { firstValueFrom } from 'rxjs';
import { HttpClient } from '@angular/common/http';
@component({
selector: 'app-docuseal-form',
template: `
<div
class="docuseal-form-container"
[class.form-signed]="isDocumentSigned"
>
<div *ngIf="isLoading" class="loading-message">
, styles: [
.docuseal-container {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
]
})
export class DocuSealFormComponent implements OnInit, OnDestroy {
@ViewChild('docusealForm') docusealFormElement: ElementRef;
formUrl: string;
userData: any;
prefillData: any = {};
prefillDataJson: string;
isLoading = true;
isDocumentSigned = false;
isAlreadySigned = false;
isSaving = false;
private signedDocumentUrl: string;
private docusealInstance: any;
// Custom CSS for DocuSeal form
customCss =
#submit_form_button { background-color: #1890ff !important; border-color: #1890ff !important; color: white !important; } #submit_form_button:hover { background-color: #40a9ff !important; border-color: #40a9ff !important; }
;constructor(
private modalRef: NzModalRef,
private messageService: NzMessageService,
private entityAgreementService: EntityAgreementService,
private router: Router,
private ngZone: NgZone,
private cdr: ChangeDetectorRef,
private http: HttpClient
) {}
async ngOnInit() {
// Get data from modal config
const modalData = this.modalRef.getConfig().nzData;
this.formUrl = modalData.formUrl;
}
private handleCompletedEvent = (event: any) => {
console.log('DocuSeal completed event:', event);
};
async handleContinue() {
if (!this.signedDocumentUrl) {
this.messageService.error('No signed document found');
return;
}
}
ngOnDestroy() {
// Remove event listeners
if (this.docusealFormElement?.nativeElement) {
const formElement = this.docusealFormElement.nativeElement;
formElement.removeEventListener('completed', this.handleCompletedEvent);
}
}
}
`
Beta Was this translation helpful? Give feedback.
All reactions