Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] iziModal_open does not open the modal in screen action

$
0
0

Hey Mattias,

thanks for raising the question. Well, in order to upload a file, using the widget the platform provides, by default, it causes a post request and this will make a reload.

You can use a boolean screen var that turns true when running validations on the file and use the auto open trigger, using that var.

Basically, the boolean starts false.
On the action that validates the file, i presume that you have a foreach where the validation happens. If not valid, then turn the boolean screen var, for example "HasErrors" to true. On the modal, on the auto open parameter add an if(HasErrors,"true","false")

You can't trigger the izimodal on the preparation because it runs before the DOM readiness, but changing the variable value will make it live on the preparation after the post request, and from there you can make the modal to open before the page to fix the error.

Another option, that would open the izimodal from and action is using an ajax file uploader, like this one:

https://www.outsystems.com/forge/component-overview/352/file-upload

or this one:

https://www.outsystems.com/forge/component-overview/5543/filepondupload

the idea is to upload the file without reloading the page and handle the izimodal from there.


Not sure if was this what you were looking for. 


Cheers!


Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>