Thnx a lot!
On Nov 16, 10:42 am, Anthony <abasta...@gmail.com> wrote: > You can use a comment instead of a default: > > Fields(..., comment='Enter your comment here') > > though that will display next to or below the input field (depending on > your formstyle) rather than in the text box itself. > > As an alternative, you can set the HTML5 'placeholder' attribute for the > input field by customizing the field's widget: > > Field(..., > widget=lambda f,v: SQLFORM.widgets.text.widget(f, v, > _placeholder='Enter your comment here')) > > Anthony > > > > > > > > On Wednesday, November 16, 2011 4:24:54 AM UTC-5, thodoris wrote: > > > Hello, > > > I have a text field in my db with a default instructive text like > > "Enter your comment here", but i would like when the user tries to > > input text, the default text to disappear without having to delete it > > manually