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.

Reply via email to