hm. sorry, you got that already: you have two fields with the same name. What are you trying to achieve ?
On Saturday, August 30, 2014 9:13:09 PM UTC+2, Richard wrote: > > I have used an sql form for adding records with date fields. > I added 2 date fields on a table like I did before, now I get only on this > form the error " Enter date as 1963-08-28" pops up when entering a date. > On the other forms the datepicker is working fine. > > In db.py > db.define_table('local_ev_def', > ... > Field('ev_start_date', 'date', required=True, > label=T('EV start date')), > Field('ev_end_date', 'date', required=True, > label=T('EV end date')), > ..... > > In Controller > form_add_local_ev_def = SQLFORM(db.local_ev_def, > fields=['lev_def_name', 'description', > 'homeostat', 'global_ev', 'period', > 'ev_start_date', 'ev_start_date', > 'data_type', 'unit']) > if form_add_local_ev_def.process(formname='add_lev_def').accepted: > ..... > > What may cause this error? > > The answer is a double ev_start_date field. The error is misleading, > should this be included in the form validation? > > Richard D > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.