Show pop-up after completion of export form fields
11 Feb 20262 minutes to read
The exportSuccess event fires when exporting annotations or form data completes successfully. Use this event to display a notification pop-up that informs users the export finished and their data was saved.
Use the following example to display a notification after a successful export.
<!--Render PDF Viewer component-->
<ejs-pdfviewer id="pdfViewer"
[serviceUrl]="service"
[documentPath]="document"
(exportSuccess)="fireExportRequestSuccess()"
style="height:640px;display:block">
</ejs-pdfviewer>
//Method to notify popup once the form is submitted.
public fireExportRequestSuccess() {
var pdfViewer = (<any>document.getElementById('pdfViewer'))
.ej2_instances[0];
//API to notify popup once the form is submitted.
pdfViewer.viewerBase.openImportExportNotificationPopup(
'Your form information has been saved. You can resume it at any times.Form Information Saved'
);
}<!--Render PDF Viewer component-->
<ejs-pdfviewer id="pdfViewer"
[serviceUrl]="service"
[documentPath]="document"
(exportSuccess)="fireExportRequestSuccess()"
style="height:640px;display:block">
</ejs-pdfviewer>
//Method to notify popup once the form is submitted.
public fireExportRequestSuccess() {
var pdfViewer = (<any>document.getElementById('pdfViewer'))
.ej2_instances[0];
//API to notify popup once the form is submitted.
pdfViewer.viewerBase.openImportExportNotificationPopup(
'Your form information has been saved. You can resume it at any times.Form Information Saved'
);
}