You're right this a string field , but when I tried to use first [_size] to format it like the other fields... but it does not work, the field is always the same length. I have the same pb with another string field. I am rendering them in a table with no attrivutes, so I do not think that matter. I'm using SQLite.
Here is my model db.define_table("LigneOF", SQLField("OF", "integer"), SQLField("Date","date", default=None), SQLField("Equipe","integer", requires=IS_IN_SET(['1','2','3'])), SQLField("Cdebut","integer", requires=IS_LENGTH(6)), SQLField("Cfin","integer", requires=IS_LENGTH(6)), SQLField("Qrebuts","integer", requires=IS_LENGTH(6)), SQLField("Rques","string")) and the controller : Form2=SQLFORM(db.LigneOF,fields=['Date' ,'Equipe', 'Cdebut', 'Cfin','Qrebuts','Rques'],hidden=dict(OF=CodeOF),submit_button='Sauver') Form2.vars.OF=CodeOF for champs in ['Date' ,'Cdebut', 'Cfin','Qrebuts','Rques']: Form2.element(_name=champs)['_size']=9 if Form2.accepts(request.vars): response.flash = 'Données saisies' -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.