I have an inline form:
form=SQLFORM.factory(
Field('tag',length=128,requires=[IS_IN_DB(db,'tag.name','%(name)s',error_message='Tag
not in database')]),
Field('locality',length=64,requires=[IS_IN_DB(db,'locality.name','%(name)s',error_message='Localityniet
in database')]),
separator='')
form.element('input[name=tag]').update(_class='span3',
_placeholder='Tag')
form.element('input[name=locality]').update(_class='span3',
_placeholder='Amsterdam')
The problem is that the error_message cause the form to break, i.e if Tag
is not in database the error_wrapper under field Tag
causes the field locality and the submit button to move to the next line.
So instead of
input input button
I get
input
error_wrapper
input button
Is there a way to disable the error_wrapper and display the error in the
flash message?
Kind regards,
Annet
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.