web2py - Flash message not getting displayed even after form gets processed -
I wrote the code to create a custom form. This is a simple form that has some text box elements on it. When I submit the form, it gets processed but it does not show the flash message. I do not want to extend my view from My code in the controller is given below: used in my. The e.js files are given below: layout.html , but I am using
.js files which are
layout.html / P >
myform = SQLFORM.factory (field ('Field 1', 'Unicode', = IS_NOT_EMPTY () is required, field ( 'Form2', 'unicode', = is_NOT_EMPTY ()), submit_button = 'add', formstyle = "divs", _ id = "form1") if myform.process (formname = 'myform', keepvalues = True). Accepted: response.flash = 'form accept'
href = "{{= {URL ('static', 'css / payment / css / style.css')}} "Relay =" stylesheet "/>
Comments
Post a Comment