How is the form submitted? It looks like you simply have some text in a div 
for the "Send it" functionality.

Anthony

On Sunday, April 30, 2017 at 8:40:03 AM UTC-4, Maurice Waka wrote:
>
>
>
> down votefavorite 
> <http://stackoverflow.com/questions/43705741/i-cant-submit-customized-form-with-input#>
>
> I have a problem using input with web2py when it comes to form submission. 
> My code below:
>
> db.define_table('searches',
>                 Field('body', 'text', requires= (IS_NOT_EMPTY(), IS_LOWER()),
>                       label= ''),
>                 auth.signature)
>
> def view_searches():
>     user_id = request.args(0, cast=int)
>     id = request.args(0, cast=int)
>     body = db.searches.body
>     form = SQLFORM(db.searches, formstyle='divs')
>     if form.process().accepted:
>         pass
>
> <div class="bottom_wrapper clearfix">
>         {{=form.custom.begin}}
>         <div class="message_input_wrapper">
>             <input class="message_input" name="body" placeholder="Type your 
> message here..." />
>         </div>
>         <div class="send_message">
>             <div class="icon"></div>
>             <div class="text">Send it</div>
>         </div>
>         {{=form.custom.end}}</div>
>
> I had the same issue with textarea and rectified with this 
> <http://stackoverflow.com/questions/43303715/web2py-custom-form-doesnt-submit,>
>  but 
> it looks like i might be missing something. My database is still empty when 
> posting text. Please assist. Kind regards
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to