Got it. Thanks a lot for your patience and the explanation.
On Feb 8, 10:45 pm, DenesL wrote:
> Note that when there are no values in the set then *no* input
> type=radio fields are created in the form, so there is nothing to send
> when you submit the form.
>
> On Feb 7, 10:38 pm,Dan wrote:
>
>
Note that when there are no values in the set then *no* input
type=radio fields are created in the form, so there is nothing to send
when you submit the form.
On Feb 7, 10:38 pm, Dan wrote:
> You are right, if I used an non-empty list to submit, both forms work
> fine.
> so the widget = SQLFORM.
You are right, if I used an non-empty list to submit, both forms work
fine.
so the widget = SQLFORM.widgets.radio.widget did have different
behavior to the form submission.
On Feb 7, 11:08 pm, DenesL wrote:
> It will work if you have values inside the IS_IN_SET validators in
> your controller, e
It will work if you have values inside the IS_IN_SET validators in
your controller, e.g.
IS_IN_SET([1,2,3,4],multiple='multiple')
It seems no luck for me.
I got following output when I submit my first form
[]
response.flash=Form
but when comes into the second form, the response.flash is empty.
[]
response.flash=
On Feb 6, 9:37 pm, DenesL wrote:
> It works for me.
> Try with this view (which does not incl
It works for me.
Try with this view (which does not include the layout):
{{=form}}
{{=xform}}
{{=request.args}}{{=request.vars}}
response.flash={{=response.flash}}
On Feb 6, 2:49 am, Dan wrote:
> My view did include the default layout, I omit it when I writing this
> discussions.
>
> The respon
My view did include the default layout, I omit it when I writing this
discussions.
The response.flash can show up when I submit my first form.
But it doesn't work when I submit the second form which used the
widget = SQLFORM.widgets.radio.widget.
On Feb 3, 1:27 am, DenesL wrote:
> Your view does
Your view does not include the default layout which in turn includes
the response.flash, so you have to put it in your view somewhere:
{{=response.flash}}
On Feb 1, 9:11 pm, Dan wrote:
> Hi Denesl,
> Thanks for the hints. I got the sumbit info from the xform.
> '_formname': 'xform'}>
> But
Hi Denesl,
Thanks for the hints. I got the sumbit info from the 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, Den
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}}{{=request.vars}}
On Feb 1, 5:29 am, Dan wrote:
> Hello,
>
> I'm testing empty submit with the fo
10 matches
Mail list logo