Is there a way to have a field that creates a unique number.
For example, I want to have a form for a new client setup, and would like a field that automatically generates a number (customer number).
The resulting number would be input into other forms used by the client.
That way, there is uniqueness across the data for that customer.
Thanks




September 14, 2012 at 2:10 pm
You can do this a couple different ways. The best way may be to register the client as a WordPress subscriber using our registration add-on. This opens up a lot of possibilities for keeping your customer information and form entries linked together...Each user is assigned a user ID By WordPress which would fill the requirement.
If you don't want to register users, you could use the auto_id dynamic default value to automatically assign a unique number into one of your form fields in your form. Here's more info about that: http://formidablepro.com/knowledgebase/using-dynamic-default-values-in-fields/
September 14, 2012 at 3:46 pm
I tried option 2.
Created a Hidden field, called Contract Number, with a default value of [auto_id start=1]. (See attached image)
When the form is created, the field is blank when looking at the entry.
Attachment:

September 14, 2012 at 3:53 pm
Insert that shortcode here instead.
Attachment:

September 14, 2012 at 3:55 pm
Thats it.
Thanks
Topic closed.