I see. I am enlightened. Thank you so much!
On Oct 25, 12:48 am, "mr.freeze" <[email protected]> wrote: > submit = conversion_form.element('input',_type='submit') > submit['_style'] = 'display:none;' > > or with CSS > > form#conversion_dropdown input[type=submit] { > display:none; > > } > > On Oct 24, 11:36 am, Luther Goh Lu Feng <[email protected]> wrote: > > > > > > > > > conversation_dropdown = SQLFORM.factory( > > Field('text', label='Select a conversation', > > requires=IS_IN_DB(db, > > 'question.id','question.text')), > > _id='conversation_dropdown') > > > On Oct 24, 11:47 pm, "mr.freeze" <[email protected]> wrote: > > > > How are you creating the form? Can you show the code? > > > > On Oct 24, 10:45 am, Luther Goh Lu Feng <[email protected]> wrote: > > > > > I see. How do I filter the specific form that has id='myform'? > > > > > On Oct 24, 11:30 pm, "mr.freeze" <[email protected]> wrote: > > > > > > This is how I do it. There may be a better way. > > > > > > def myform(): > > > > > form = SQLFORM.factory(Field('test')) > > > > > submit = form.element('input',_type='submit') > > > > > submit['_style'] = 'display:none;' > > > > > return dict(form=form) > > > > > > You could always just use a CSS rule too > > > > > > On Oct 24, 10:21 am, Luther Goh Lu Feng <[email protected]> wrote: > > > > > > > I have created a dropdown list, using SQLFORM.factory which will > > > > > > autosubmitted > > > > > > using ajax when there is a change in selection. > > > > > > > However the form generated has a submit button, which I would like > > > > > > to hide. I > > > > > > would like to ask for tips regarding this.

