user2667066
user2667066

Reputation: 2109

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.

Upvotes: 0

Views: 89

Answers (1)

Anthony
Anthony

Reputation: 25536

Try:

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

Upvotes: 1

Related Questions