When I enter the code on pg. 55: 1 def first(): 2 form = FORM(INPUT(_name='visitor_name', requires=IS_NOT_EMPTY()), 3 INPUT(_type='submit')) 4 if form.accepts(request.vars, session): 5 session.visitor_name = form.vars.visitor_name 6 redirect(URL(r=request, f='second')) 7 return dict(form=form)
The submit button initially shows on the same line as the input. If nothing is entered though the error message shows below the entry field and the submit button shows below that. I that the expected behaviour?
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.