Hi Don
Not sure what you what to be submitted in the form field. But anyway,
maybe you might like to try this example form, which I hope will give you
some ideas to solve your problem...
Regards, David
def testform():
form = SQLFORM.factory(
Field('test','string',
label='Choose Pic',
requires = IS_IN_SET({
0:IMG(_src=URL('static','images/facebook.png')),
1:IMG(_src=URL('static','images/twitter.png')),
}),
default = 0,
widget=SQLFORM.widgets.radio.widget),
_action=URL()
)
return dict(form=form)
On Wednesday, August 29, 2012 10:00:18 PM UTC+1, Don_X wrote:
>
>
> I am guessing that this exercise can only be done the traditional way (
> the HTML way ) by putting in the radio buttons directly below each table
> column containing the image so a user can select one of them ! ( with
> custom forms ) ....
>
> any cues web2py-users ??? .. there is also the JS way that it can be
> done ...
>
> but why can't it be done through a set ( or tuple/ list of images ??? )
> ... I don't get it !! ..
>
>
>
--