hi, i'm having this model: table('stations', Field('name')) db.stations.name.requires = IS_NOT_IN_DB(db, 'stations.name')
and i am creating a crud.create with this: if request.vars: db.stations.name.default = request.get_vars['_name'] db.stations.name.writable = False form = crud.create(db.stations).process(next=URL('index'), onvalidation=myvalidation) def myvalidation(form): station = db(db.stations.name==form.vars.name) if station: form.errors.name = "station name already exists!" response.flash = T("station name already exists!") #gets ignored the thing is that i cannot show the form.errors.name message under the field or send a specialized response.flash message, any idea on how to add this behavior? thanks! -- --- 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/groups/opt_out.