Yup, missed that, sorry again... On 4/10/2012 8:44 AM, Massimo Di Pierro wrote:
Strange. It is saying grid.create_form is None. Make sure you have the custom form into a conditional:{{if grid.create_form:}} {{=grid.create_form.custom.begin}} .... {{=grid.create_form.custom.end}} {{....}} On Tuesday, 10 April 2012 08:31:55 UTC-5, Jim S wrote: I've tried: {{=grid.create_form.begin}} and {{=grid.create_form.custom.begin}} and both get me the same AttributeError: Traceback(most recent call last): File"C:\dev\web2py\gluon\restricted.py",line205,inrestricted execccodeinenvironment File"C:\dev\web2py\applications\InfoCenter\views\applications/railLoadingNew.html",line78,in<module> AttributeError:'NoneType'object has no attribute'begin' or Traceback(most recent call last): File"C:\dev\web2py\gluon\restricted.py",line205,inrestricted execccodeinenvironment File"C:\dev\web2py\applications\InfoCenter\views\applications/railLoadingNew.html",line78,in<module> AttributeError:'NoneType'object has no attribute'custom' Am I missing something? On 4/9/2012 3:58 PM, Massimo Di Pierro wrote:You should be able to customize the create and edit forms in the same way: {{if grid.create_form:}} {{=grid.create_form}} {{elif grid.update_form:}} {{=grid.update_form}} {{elif grid.view_form:}} {{=grid.view_form}} {{else:}} {{=grid}} {{pass}} You need the current trunk because I just found an issue about this. On Monday, 9 April 2012 11:55:24 UTC-5, Jim S wrote: Hi I want to customize the edit form of a .smartgrid the way that you can customize SQLFORM forms as specified in the manual under section 7.5. Is this possible? If so, what do I use in place of {{=form.custom.begin}}? How do I reference the form portion of the returned grid? -Jim

