You can use a dictionary, list of tuples, or a separate "labels" argument:
IS_IN_SET({'b':'black', 'w':'white'}) IS_IN_SET([('b', 'black'), ('w', 'white')]) IS_IN_SET(['b', 'w'], labels=['black', 'white']) Anthony On Tuesday, March 27, 2012 11:56:48 AM UTC-4, Larry Wapnitsky wrote: > > Forgive my N00b-ness - not a web developer (but I've said that before) > > I have the following code in an app I'm writing: > > Field('b_or_w', 'string', length=1, widget=SQLFORM.widgets.radio.widget, > requires=IS_IN_SET(['b','w']), default='b') > > How do I customize this so that, instead of *b* and *w* appearing on my > form, I can get *black* and *white*, but the former is what is entered > into my database? > > (clear as mud, right?) > > Thanks, > Larry >