It was working "if form.create_form:"... I thought that grid use form variable doesn't matter if the SQLFORM.grid wasn't in a form variable at all...
And my bad because I show form = crud... But it was not my SQLFORM.grid... Arrg. Sorry about that... Richard On Thu, Nov 10, 2011 at 1:26 PM, Anthony <abasta...@gmail.com> wrote: > On Thursday, November 10, 2011 12:42:49 PM UTC-5, Richard wrote: >> >> >> "if 'new' in request.args:" works (allow to load the grid) but the "if >> form.create_form:" not work alone or in conjunction with the former >> > > Yeah, looks like it would have to be something like "if hasattr(form, > 'create_form'):". >