[web2py] How to use modal with an if condition

2014-05-23 Thread LoveWeb2py
Is this possible? I basically want to try and write a function that says if the result == 3: popup a modal box I followed this example: http://getbootstrap.com/2.3.2/javascript.html#modals But I just can't figure out how to make the modal pop up in the same window. I am thinking it will

Re: [web2py] How to use modal with an if condition

2014-05-23 Thread Richard Vézina
We will need more background and code... What result is? a field that a user is actually filling or the content of a variable that you can determine at the controller level? If the later it is easy : {{if result == 3:}} modal html modal javacript in the javascript trigger the modal {{pass}}