You don't say what is that you were expecting.
Empty elements do not submit values.

Add the following to the end of your view so you can see what is being
sent/received each time:
{{=request.args}}<br/>{{=request.vars}}


On Feb 1, 5:29 am, Dan <ideall...@googlemail.com> wrote:
> Hello,
>
> I'm testing empty submit with the following two forms,  one is
> dropdown list and the other one is the checkradio box with v1.99.4.
>
> The dropdown list with empty select can successfully submit and got
> the expected responses.  But using checkradio widget, empty submit
> doesn't work and no response at all.
>
> Is this a bug for radio.widget or something else?  Many thanks.
>
> In my controller
> test.py
>
> form = SQLFORM.factory(Field('Form', requires=IS_IN_SET([],
> multiple='multiple')))
>     if form.accepts(request.vars,session,formname='form'):
>         response.flash = "Form Response"
>         message = form.vars
>
> xform = SQLFORM.factory(Field('FormX', requires=IS_IN_SET([],
> multiple='multiple'), widget = SQLFORM.widgets.radio.widget))
>     if xform.accepts(request.vars,session,formname='xform'):
>         response.flash = "Form X Response"
>         message = xform.vars
> return dict(xform=xform,form=form)
>
> In my viewer
> test.html
>
> {{=form}}
> {{=xform}}

Reply via email to