Hi Denesl, Thanks for the hints. I got the sumbit info from the xform. <Storage {'_formkey': 'cbaea79f-4524-4fa8-b5e6-dbae7e2b2a71', '_formname': 'xform'}> But what I want is the flash response "Form X Response" shows up like the dropdown select form behaviors and other form.vars during the submit.
In "form", it's okay but not in "xform". Many thanks On Feb 1, 11:56 pm, DenesL <denes1...@yahoo.ca> wrote: > 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}} > >