Thanks. This worked:
<div class="bottom_wrapper"> {{=form.custom.begin}} <div class="row"> <div class="col-lg-8" > {{=form.custom.widget.message}} </div> <div class="col-lg-4" > {{=form.custom.submit}} </div> {{=form.custom.end}} </div> </div> On Wed, Mar 18, 2020 at 4:40 PM Javier Pepe <javierp...@gmail.com> wrote: > Change > > db.posts.question by db.posts.message > > El mié., 18 de mar. de 2020 a la(s) 10:24, Maurice Waka ( > mauricew...@gmail.com) escribió: > >> This is my code in the model.py >> >> db.define_table('posts', >> Field('author', 'reference auth_user', >> default=auth.user_id, writable=False, readable=False), >> Field("message", 'string', requires=IS_NOT_EMPTY(), >> length=512, label=T('questions'),widget=widget(_placeholder='Type your >> question here',)), >> auth.signature >> ) >> >> On Wed, Mar 18, 2020 at 4:22 PM Maurice Waka <mauricew...@gmail.com> >> wrote: >> >>> I'm getting a none value. See attached. >>> >>> On Wed, Mar 18, 2020 at 4:14 PM Javier Pepe <javierp...@gmail.com> >>> wrote: >>> >>>> in the manual >>>> >>>> http://www.web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms >>>> >>>> {{=form.custom.begin}} >>>> <div>{{=form.custom.widget.question}}{{=form.custom.submit}}</div> >>>> {{=form.custom.end}} >>>> >>>> El mié., 18 de mar. de 2020 a la(s) 10:09, Maurice Waka ( >>>> mauricew...@gmail.com) escribió: >>>> >>>>> Thanks. >>>>> I put the code in the model.py code. It works. >>>>> >>>>> How about float button to right? >>>>> >>>>> Regards >>>>> >>>>> On Wed, Mar 18, 2020 at 4:00 PM Javier Pepe <javierp...@gmail.com> >>>>> wrote: >>>>> >>>>>> Hi >>>>>> >>>>>> You can try with this >>>>>> >>>>>> db.posts.question.label = ' ' >>>>>> >>>>>> label attr replace field name >>>>>> >>>>>> >>>>>> >>>>>> El mié., 18 de mar. de 2020 a la(s) 09:51, Maurice Waka ( >>>>>> mauricew...@gmail.com) escribió: >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> I'm trying to customize the SQLFORM to look like >>>>>>> textarea/input....with text area floating left and submit button to the >>>>>>> right and not bottom. I'm using the LOAD signature. >>>>>>> >>>>>>> I also want to hide the filed name (labelled as Questions see >>>>>>> attached). >>>>>>> >>>>>>> Currently with this code, I cant hide the field name and I cant find >>>>>>> a way to float the submit button to the right. >>>>>>> >>>>>>> Attached is how the form looks like. >>>>>>> >>>>>>> def post(): >>>>>>> #db.posts.message.readable = False#Not working with this code >>>>>>> return dict(form=SQLFORM(db.posts, readable=False).process(), >>>>>>> posts=db(db.posts.author == auth.user.id).select() ) >>>>>>> >>>>>>> >>>>>>> View page...post.load >>>>>>> <div class="bottom_wrapper"> >>>>>>> {{=form}} >>>>>>> </div> >>>>>>> >>>>>>> -- >>>>>>> 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 web2py+unsubscr...@googlegroups.com. >>>>>>> To view this discussion on the web visit >>>>>>> https://groups.google.com/d/msgid/web2py/c8216348-8f12-4e8e-90c2-7e4ef9a482be%40googlegroups.com >>>>>>> <https://groups.google.com/d/msgid/web2py/c8216348-8f12-4e8e-90c2-7e4ef9a482be%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>> . >>>>>>> >>>>>> -- >>>>>> 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 a topic in >>>>>> the Google Groups "web2py-users" group. >>>>>> To unsubscribe from this topic, visit >>>>>> https://groups.google.com/d/topic/web2py/m9jMXz52fZg/unsubscribe. >>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>> web2py+unsubscr...@googlegroups.com. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/web2py/CAHxJ-7oD-q_bewVyZbcViPAeKUx4kzy%2BMbCTbU%2B5_BA1a%2BSSew%40mail.gmail.com >>>>>> <https://groups.google.com/d/msgid/web2py/CAHxJ-7oD-q_bewVyZbcViPAeKUx4kzy%2BMbCTbU%2B5_BA1a%2BSSew%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>>>> 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 web2py+unsubscr...@googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/web2py/CALkNK540GAg23er7PmUbpKb1qefXQ-kYN_yikednYpFvt4jbiQ%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/web2py/CALkNK540GAg23er7PmUbpKb1qefXQ-kYN_yikednYpFvt4jbiQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>>> 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 a topic in the >>>> Google Groups "web2py-users" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/web2py/m9jMXz52fZg/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> web2py+unsubscr...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/web2py/CAHxJ-7oprsPy_PvDWnGE8xhU9iuBcKN6462jaGouXKhY4qSuXw%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/web2py/CAHxJ-7oprsPy_PvDWnGE8xhU9iuBcKN6462jaGouXKhY4qSuXw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> 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 web2py+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/web2py/CALkNK56aZycvNXhNxQeFrfcyGtNu_JzPBxSkfeMr0tXcWR5ZNg%40mail.gmail.com >> <https://groups.google.com/d/msgid/web2py/CALkNK56aZycvNXhNxQeFrfcyGtNu_JzPBxSkfeMr0tXcWR5ZNg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/m9jMXz52fZg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/CAHxJ-7puwg22%3D7hyQxev_cg6mxLsMBpbZLkKFXQ_wdF1tM%3DRPQ%40mail.gmail.com > <https://groups.google.com/d/msgid/web2py/CAHxJ-7puwg22%3D7hyQxev_cg6mxLsMBpbZLkKFXQ_wdF1tM%3DRPQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CALkNK54s%3Da2FYedxLiknG7CWzSr59Xgz2QScgaUDSdx2sJ-xVw%40mail.gmail.com.