Reading from this stackoverflow post, it appears it isn't something you can do. But, they show some alternatives:
https://stackoverflow.com/questions/5805059/how-do-i-make-a-placeholder-for-a-select-box However, that post is pretty old, maybe someone else has some better solutions. -Jim On Friday, September 18, 2020 at 5:41:11 AM UTC-5, mostwanted wrote: > > > Is there a way to create a placeholder for a reference field? > e.g: > {{ > *Field('place', 'reference locations', label=SPAN('Place of operations'), > widget=lambda field, value: SQLFORM.widgets.reference.widget(field, value, > _placeholder="Whats your place of operations?"))* > }} > > Regards; > > Mostwanted > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2dd10909-406b-4393-87a3-02dd9a65a35fo%40googlegroups.com.