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
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