Been banging my head against the wall with this, trying to move from a 
simple form to a sqlform, and placeholder is not working:
in my view this works fine:
{{=form.custom.widget.tm_home}}
but
{{=form.custom.widget.tm_home["_placeholder"] = "Home Team Name"}}
or
{{=form.custom.widget.tm_home['_placeholder] = 'Home Team Name'}}
gives
<type 'exceptions.SyntaxError'> keyword can't be an expression 
(newGame.html, line 99)
and
{{=form.custom.widget.tm_home(_placeholder = "Home Team Name")}}
gives
<type 'exceptions.TypeError'> 'INPUT' object is not callable

I'm assuming this is a formatting problem in my code (hence the variations 
above I scraped from google and this thread) but what exactly?
Thanks!

(And +1 for more input attributes)

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to