Re: [web2py] Re: Single error message for radio group

2012-05-17 Thread Michael Brooks
I can't find any documentation of the hideerror feature, but looking at html.py, I don't see how the above example would work: INPUT( _type='radio', _name='age', _value='5', _id='age5', hideerror=True,value =self.request.vars['age']) The hideerror flag seems to work if you do this, though:

Re: [web2py] Re: Single error message for radio group

2012-05-17 Thread Anthony
I can't find any documentation of the hideerror feature, but looking at html.py, I don't see how the above example would work: INPUT( _type='radio', _name='age', _value='5', _id='age5', hideerror=True,value =self.request.vars['age']) That should work. Note, INPUT inherits from DIV, and

Re: [web2py] Re: Single error message for radio group

2012-03-28 Thread Limedrop
I've got the same issue (running 1.99.7). Has anyone solved this? On Sunday, February 26, 2012 6:12:41 PM UTC+13, Detectedstealth wrote: Hi Massimo, Your suggestion doesn't seem to be working: LI( H5(self.T('What is your Age?')), INPUT(

Re: [web2py] Re: Single error message for radio group

2012-03-28 Thread Massimo Di Pierro
I think there is a bug and I think I just fixed it in trunk. Please check it. On Wednesday, 28 March 2012 20:38:08 UTC-5, Limedrop wrote: I've got the same issue (running 1.99.7). Has anyone solved this? On Sunday, February 26, 2012 6:12:41 PM UTC+13, Detectedstealth wrote: Hi Massimo,

Re: [web2py] Re: Single error message for radio group

2012-03-28 Thread Bruce Wade
The solution I made was setting a default value for all my radio groups. On Wed, Mar 28, 2012 at 7:01 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I think there is a bug and I think I just fixed it in trunk. Please check it. On Wednesday, 28 March 2012 20:38:08 UTC-5, Limedrop

Re: [web2py] Re: Single error message for radio group

2012-03-28 Thread Limedrop
Yes, tested and it now works! Thanks Massimo. On Thursday, March 29, 2012 3:01:41 PM UTC+13, Massimo Di Pierro wrote: I think there is a bug and I think I just fixed it in trunk. Please check it. On Wednesday, 28 March 2012 20:38:08 UTC-5, Limedrop wrote: I've got the same issue (running

Re: [web2py] Re: Single error message for radio group

2012-03-28 Thread Limedrop
Thanks. In my case default=None (and needs to be), so thankfully Massimo's fix does the trick. On Thursday, March 29, 2012 3:27:40 PM UTC+13, Detectedstealth wrote: The solution I made was setting a default value for all my radio groups.

Re: [web2py] Re: Single error message for radio group

2012-02-25 Thread Bruce Wade
Hi Massimo, Your suggestion doesn't seem to be working: LI( H5(self.T('What is your Age?')), INPUT( _type='radio', _name='age', _value='1', _id='age1', requires = IS_NOT_EMPTY(error_message=self.T('missing your age')),

[web2py] Re: Single error message for radio group

2012-02-12 Thread Massimo Di Pierro
INPUT(,hideerror=True) On Feb 12, 6:33 pm, Bruce Wade bruce.w...@gmail.com wrote: Hi, Is it possible to show a single error message for a group of radio buttons. See screen shot FORM(             FIELDSET(                 H4(self.T('Personal Questions')),                 UL(