Search code examples
formsweb2py

Web2py: how can I set the 'target' attribute in an SQLFORM


The title says it all. I want the initial form submission to open in a new window, by having <form ... target="new">. How do I do that?

I've tried

SQLFORM(..., _target="new")

but that doesn't seem to do anything.


Solution

  • Try:

    SQLFORM(..., _target='_blank')