Re: [web2py] pop-up verification

2012-03-27 Thread Richard Vézina
I think you will have to write a ajax call back to the database that will
look if the data already existing if so trigger your message if not let it
go.

There is the validators but they will not let pass the duplicated data if
you have set your field to unique.

Richard

On Tue, Mar 27, 2012 at 4:14 PM, Larry G. Wapnitsky wrote:

> Last question of the day, I promise...
>
> So, I have data that exists in my database.  If a user enters a value that
> already exists, I want to prompt them with an "are you sure?" type question
> before the function that adds/updates the data continues.
>
> How do I interrupt my current function to do so without leaving the page
> and losing data?
>
> Thanks,
> Larry
>


[web2py] pop-up verification

2012-03-27 Thread Larry G. Wapnitsky

Last question of the day, I promise...

So, I have data that exists in my database.  If a user enters a value 
that already exists, I want to prompt them with an "are you sure?" type 
question before the function that adds/updates the data continues.


How do I interrupt my current function to do so without leaving the page 
and losing data?


Thanks,
Larry