there is a jquery plugin for that http://www.joesak.com/2008/11/19/a-jquery-function-to-auto-fill-input-fields-and-clear-them-on-click/
{{response.files.append(URL(request.application,'static','jquery.autofill.js'))}} {{=FORM(INPUT(_name='q',_size=10,_id="txtSearch"))}} <script type="text/javascript"><!-- $(document).ready(function(){ $('#txtSearch').autofill({ value: '...search', defaultTextColor: '#ccc', activeTextColor: '#aaa' }); }); //--></script> On Apr 14, 10:57 am, Rohan <yourbuddyro...@gmail.com> wrote: > Thanks mdipierro, > > I have followup queries, > > I want to set default values for email and password field to "Email" > and "Password" respectively and clear these default values onFocus. I > can add default values and onfocus code using jQuery code but is there > anyway I can set defaultValue in the form itself like > {{=form.custom.widget.email.'defaultValue''== "Email"}} > > Thanks > > On Apr 14, 10:23 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > yes. in default/users.html > > > replace > > > {{=form}} > > > with > > > {{if request.args(0)=='login'}} > > {{=form.custom.begin}} > > <table><tr> > > <td>{{=form.custom.widget.email}}</td> > > <td>{{=form.custom.widget.password}}</td> > > <td>{{=form.custom.submit}}</td> > > </tr></table> > > {{=form.custom.end}} > > {{else:}}{{=form}}{{pass}} > > > On Apr 14, 12:19 am, Rohan <yourbuddyro...@gmail.com> wrote: > > > > Hi All, > > > > I want to change the look and feel of default login form. I want it to > > > display email and password fields in single row rather than 2 > > > different rows. Any way to customize the default form? > > > > Any pointers? > > > > Thanks -- To unsubscribe, reply using "remove me" as the subject.