I cant seem to submit my form with this code:
@auth.requires_login()
def index():
db.post.answers.writable=False
db.post.answers.readable=False
form = SQLFORM(Post, formstyle='divs')
if form.process().accepted:
pass
code.....
return(form=form)
view:
{{=form.custom.begin}}
<div class="chat-form">
<textarea></textarea>
<button>Send</button>
</div>
{{=form.custom.end}}
My db is empty with no data submitted.Please help Regards