[web2py] Re: text field remove default when user inputs data

2016-02-05 Thread Ron Chatterjee
You are right. I forgot to mention, I was trying to work it with 'list:string' And it breaks the list. On Friday, February 5, 2016 at 3:32:02 PM UTC-5, Anthony wrote: > > Works for me. Must be a problem somewhere else in your code. > > On Friday, February 5, 2016 at 3:15:27 PM UTC-5, Ron Ch

[web2py] Re: text field remove default when user inputs data

2016-02-05 Thread Anthony
Works for me. Must be a problem somewhere else in your code. On Friday, February 5, 2016 at 3:15:27 PM UTC-5, Ron Chatterjee wrote: > > Is there a similar widget that works for the string? > > Because when I do the following, it doesn't work > > > Field(..., > widget=lambda f,v: SQLFORM.wi

[web2py] Re: text field remove default when user inputs data

2016-02-05 Thread Ron Chatterjee
Is there a similar widget that works for the string? Because when I do the following, it doesn't work Field(..., widget=lambda f,v: SQLFORM.widgets.string.widget(f, v, _placeholder='Enter your comment here')) On Wednesday, November 16, 2011 at 5:04:05 AM UTC-5, thodoris wrote: > > T

[web2py] Re: text field remove default when user inputs data

2011-11-16 Thread thodoris
Thnx a lot! On Nov 16, 10:42 am, Anthony 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 alternat

[web2py] Re: text field remove default when user inputs data

2011-11-16 Thread Anthony
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 in