KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Popping up a Sweetalert on top of a report view #2825

Open Richb201 opened this topic on on Sep 19 - 1 comments

Richb201 commented on Sep 19

I have a report view and I need to popup a sweetalert box on top of it. Here is the code for the sweet alert:


<script type="text/javascript">
    Swal.fire({
        title: 'Complete',
        text: 'We have built your reports',
        imageUrl: 'https://unsplash.it/400/200',
        imageWidth: 400,
        imageHeight: 200,
        imageAlt: 'Custom image',
    })
</script>

Where can I place this so it will appear "on top" of the report.view? 
Sebastian Morales commented 1 day ago

Pls try it at the end of your report's view like this:

{report view here}
<script>
    Swal.fire({
        title: 'Complete',
        text: 'We have built your reports',
        imageUrl: 'https://unsplash.it/400/200',
        imageWidth: 400,
        imageHeight: 200,
        imageAlt: 'Custom image',
    }) 
</script>

Let us know if it works for your case. Tks,

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

None