Forums

Progressive number field

pasqualedi 01 Feb, 2010
Hi!
How can i've a progrssive number field?
This number is not editable and tis is unique.
See the picture and thanks at all.
GreyHead 01 Feb, 2010
Hi pasqualedi,

it's usually better to assign numbers after the form is submitted - the database table id number is a reliable serial indicator. Otherwise you generate a new number each time the form is viewed and that can get difficult to control and track.

Bob
pasqualedi 04 Feb, 2010
Hi Bob!
How i can generate a new number each time the form is viewed?

Thanks
GreyHead 04 Feb, 2010
Hi pasqualedi,

Probably I'd create database table or a file and keep the number in it, then in the Form HTML get the number, add one to it, and re-save it. Should work Ok unless your form gets heavy use when there is the problem that two users may try to read it at the same time.

Bob
This topic is locked and no more replies can be posted.