I assume this is an update form (else the id is not defined). you can
do

{{="%.5i" % form.record.id}}

On Oct 9, 7:01 pm, Leandro - ProfessionalIT <lsever...@gmail.com>
wrote:
> Hi,
>
>   I have a custom form and I need show the table.id in this format:
> 00000 in the page. How to do this ?
>
>   Ex:
>   <label><span>{{=form.custom.label.id}}</span>
> {{=form.custom.widget.id}}</label>
>
>    This show me: 1
>    But I need that show me in this way: 00001
>
>    Any idea ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to