This feature is javascript and is included in web2py.js file (if I recall it right). See if your page is calling this js file.
On Thu, Nov 22, 2012 at 3:09 AM, Amit <[email protected]> wrote: > Hi, > I have Delete button on SQLFORM.grid and upon clicking on it , it should > popup confirmation dialog before deleting the records and once user click on > OK , it should delete the records. > For that purpose I used web2py confirmation form but it is not working. > > please check below the code : > > def delete_records(): > form = FORM.confirm('Are you sure, you want to delete the records?') > > if form.accepted: > #delete records > > else: > pass > > redirect(URL('another_page')) > > when I clicked on Delete button, delete_records() function is getting called > but not popping up the confirmation form and control is always going to else > part means form is not accepted. > > can anyone please suggest me what am I doing wrong? > > -- > > > --

