150
Views
2
Comments
Solved
Mobile - SweetAlert2
Question

Hello!

I saw that there is a Forge component for sweetalerts (for web) and was wondering if anybody was able to get it working for a mobile app? I'm trying to import the minified js file as a global script and the css as a resource, but unfortunately, when I try to use the swal() function, it says 'swal is not defined'.

Has anyone have more success in this area? Would love to know what you did.

Ala

2018-07-20 11-50-01
Ala Roshdieh
Solution

Daniël Kuhlmann wrote:

Hi Ala,

Did you add the sweetalert2 script as required script to your application or the screen where you use it?

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/JavaScript/Extend_Your_Mobile_App_Using_JavaScript/Use_JavaScript_Code_from_an_External_Library

Regards,

Daniel


Hi Daniel,

Thanks for the message.
I tried doing that, but it didn't work for me and I ended up getting that message for some reason.
Eventually I just decided to use the script from the alertify library and it worked out for me.

Thanks anyways!
Ala

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Ala,

Did you add the sweetalert2 script as required script to your application or the screen where you use it?

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/JavaScript/Extend_Your_Mobile_App_Using_JavaScript/Use_JavaScript_Code_from_an_External_Library

Regards,

Daniel

2018-07-20 11-50-01
Ala Roshdieh
Solution

Daniël Kuhlmann wrote:

Hi Ala,

Did you add the sweetalert2 script as required script to your application or the screen where you use it?

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/JavaScript/Extend_Your_Mobile_App_Using_JavaScript/Use_JavaScript_Code_from_an_External_Library

Regards,

Daniel


Hi Daniel,

Thanks for the message.
I tried doing that, but it didn't work for me and I ended up getting that message for some reason.
Eventually I just decided to use the script from the alertify library and it worked out for me.

Thanks anyways!
Ala

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.