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 layout.html , but I am using .js files which are layout.html / P >

My code in the controller is given below:

  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'   

used in my. The e.js files are given below:

   href = "{{= {URL ('static', 'css / payment / css / style.css')}} "Relay =" stylesheet "/> 



    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -