Referance Number
Referance Number
What would be the easiest way to add a unique reference number on a form. It does not have to be sequential, I was thinking of the date and time as one long text ie 20170724121545??
Re: Referance Number
there is no problem at all, just do not forget to add an alphabetic prefix like "frm1234567890" to make the id/name valid (i'm assuming that for reference you are meaning a name or an id)
Re: Referance Number
I need it to generate it when the form isa displayed?
Re: Referance Number
it depends on the script, what you want to accomplish, how that script behaves, etc and more etc...
- BaconFries
-
- Posts: 5932
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Referance Number
If you are meaning a unique number will be generated for each user who uses or fills the form then yes it is possible but will require programming such as PHP.
The webshop in WWB has such a feature which generates a unique order number maybe viewing the tutorial will be helpful?
http://wysiwygwebbuilder.com/webshop.html
Or if you understand PHP you could use echo to generate a unique number by using echo uniqid();. Note these are pointers for your information only for how it can be done and not support.
Example of using unique(); refresh the page to see in action.
unique
The webshop in WWB has such a feature which generates a unique order number maybe viewing the tutorial will be helpful?
http://wysiwygwebbuilder.com/webshop.html
Or if you understand PHP you could use echo to generate a unique number by using echo uniqid();. Note these are pointers for your information only for how it can be done and not support.
Example of using unique(); refresh the page to see in action.
unique