How to execute/run modal window on load page? - flow theme


#1

Hello!
Anybody know how to execute/run modal window on loaded page - not on click button?

Thanks!


#2

this depends mostly on used frontend css framework.
i would search for examples in framework’s documentation


#3

I mean how to do this with flow template and tried to find some… good oxid practice for this :slight_smile:

For now i made:
[{oxscript add="$(document).ready(function(){
$(’#popupbutton’).trigger(‘click’);
})"}]
with if() conitional it works ok but i’m not proud of it hehehe


#4

There is no “oxid practice” since it’s part of bootstrap framework and not oxid. Check bootstrap v3 documentation for modal popup


#5

soo…
[{oxscript add="$(document).ready(function(){
$(’#popuptermpricevalid’).modal(‘show’);
})"}]

works too.