form.vars will include the input field name, not id. Radio buttons will have the same name, and that name should be in form.vars, with the value of the particular radio button selected. Note, you may need to change the name to 'primary_email_choice' so it can be used as a Python identifier.
Anthony On Sunday, November 27, 2011 9:04:26 PM UTC-5, Constantine Vasil wrote: > > I am using SQLFORM.factory to set several fields and a custom form > setting a radio boxes like this: > > <input type="radio" name="primary-email-choice" id="id_email_home_ch" > value="Home" checked="yes"/> > > I want the code > if form.process(formname='myinfo').accepted: > > to be able to check if "id_email_home_ch" is checked or not, but this > id does not appear in form.vars > > How to do that? > > >