Have you put the form in your view somewhere via {{=form}}?
Note, it doesn't generate a pop-up, just a standard form.
Anthony
On Thursday, March 3, 2016 at 2:23:53 AM UTC-5, Viator wrote:
>
>
> Hello!
>
> I use a SQLFORM to enter client data which works perfectly.
> The problem: when adding a new record I want the user to confirm that some
> of the entered data is also entered into a second database table but I
> cant' get the confirmation dialog to run.
>
>
> The recommended way
>
> form = FORM.confirm("Are you shure?")
> if form.accepted:
>
>
> does not work at all. No matter where in the controller I place the code.
> The dialog simply does not pop up and never enters the if form.accepted
> clause. Looking at the pages source does not show up any javascript
> containing "Are you shure".
>
> Adding a field of class='delete', will popup a dialog when checking the
> field, but the text shown is not what I nedd.
>
> I spend ages on google to find an working example but i failed.
>
> I'm working on Debian 8, browser is cromium, javascript is enabled, popups
> are as well.
>
> Any help is very welcome, Thank you,
>
> Thorsten
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.