I have a table defined with many columns but some are only relevant if a 
previous one is chosen.  How would I hide a field like this 
with SQLFORM.smartgrid?

model:
db.define_table('t_schedule_frat_query',
Field('f_recurring', type='boolean', notnull=True,
  label=T('Recurring schedule?'),
Field('f_schedule_frequency', type='string',
  label=T('Schedule Frequency'),
auth.signature,
format='%(f_query_name)s',
migrate=True)

controller:
def foo():
    form = SQLFORM.smartgrid(db.t_frat_query)
    return locals()

view:
default view

On the webpage, t_schedule_frat_query. f_schedule_frequency should only 
show up if t_schedule_frat_query. f_recurring is checked.  How would I do 
this?


Jim

-- 



Reply via email to