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? --