Hi,
I want to use a SQLFORM with a checkbox. I have tried
... Field('my_question',
requires=[IS_IN_SET([T('Yes'),T('No')]),],
widget=SQLFORM.widgets.checkboxes.widget,
default=T('No'),
),...
I got a nice form with the German translations 'Ja' and 'Nein'.
But now I did not get the English version.
A SELECT like
... SELECT(
OPTION(T('Yes'), _value='Y'),
OPTION(T('No'), _value='N'),
) ...
works depending on the T-language, but I don't know how to put a "_values"
into the SQLFORM.
Any hints?
Regards, Martin