Generating "Order Numbers" or Unique...
Is there a way to create a unique order number on form submission?
I have a script which will generate a unique ten digit number based on the order date and time - but after entering this code into the HTML section on form builder the number will display online while the form is being filled out - but it doesn't show up on the responder email and after contacting support Im told there's no way to make the contents of HTML sections show up on responder emails.
The problem is that the email programme I use doesnt recognise the code if it's entered directly into the responder email, I just get a blank space where the result should be. Perhaps the email prog is limited to very basic html (?)
So is there a way to generate some sort of unique number which will be sent along with the form submission?
I have a script which will generate a unique ten digit number based on the order date and time - but after entering this code into the HTML section on form builder the number will display online while the form is being filled out - but it doesn't show up on the responder email and after contacting support Im told there's no way to make the contents of HTML sections show up on responder emails.
The problem is that the email programme I use doesnt recognise the code if it's entered directly into the responder email, I just get a blank space where the result should be. Perhaps the email prog is limited to very basic html (?)
So is there a way to generate some sort of unique number which will be sent along with the form submission?
Do you want it unique and random?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It can be random, but I'd prefer that it's party made up of the date - for ease of reference when looking up orders.
The code ive been trying to use is this: (i think in its self it needs tidying up)
<script LANGUAGE="Javascript">
var stampmonths = new Array( "01","02","03","04","05","06","07","08","09","10","11","12");
var thedate = new Date();
document.write(stampmonths[ thedate.getMonth()] + thedate.getDate() + thedate.getFullYear() + thedate.getSeconds() );
</script>
which gives a ten digit code: monthdayyearsecond
e.g. 0820201452
considering the likely order volumes (less than two to three orders per day) this should prove to generate a unique number.
I have tried to follow the instructions given in another thread which generates a random number, but I can't seem to implement it in form builder correctly.
http://www.coffeecup.com/forums/web-for … ce-number/
Is it possible you are able to provide further instructions on how to get this working? but with the code im trying above?
Im not sure where to insert it or how
The code ive been trying to use is this: (i think in its self it needs tidying up)
<script LANGUAGE="Javascript">
var stampmonths = new Array( "01","02","03","04","05","06","07","08","09","10","11","12");
var thedate = new Date();
document.write(stampmonths[ thedate.getMonth()] + thedate.getDate() + thedate.getFullYear() + thedate.getSeconds() );
</script>
which gives a ten digit code: monthdayyearsecond
e.g. 0820201452
considering the likely order volumes (less than two to three orders per day) this should prove to generate a unique number.
I have tried to follow the instructions given in another thread which generates a random number, but I can't seem to implement it in form builder correctly.
http://www.coffeecup.com/forums/web-for … ce-number/
Is it possible you are able to provide further instructions on how to get this working? but with the code im trying above?
Im not sure where to insert it or how
There's already a date and time stamp built into the form builder. Why not use that?
_submitted_
_submitted_
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
The _submitted_ stamp looks like this 2014-08-20 16:39:57
which appears like a date stamp.
I need to use something which looks like an order number so this can be entered when making payments and traced.
Is it possible to do either using the above code or with the random number method?
I cant get it working
which appears like a date stamp.
I need to use something which looks like an order number so this can be entered when making payments and traced.
Is it possible to do either using the above code or with the random number method?
I cant get it working
Give this a try.
Add an html element to your form and paste the code below into it.
Add an input to your form and view your source code. Grab the ID of the input and replace the item4_text_1 in my code with yours. Then replace the item4 with the id of the div item number that holds the label and the input.
Add an html element to your form and paste the code below into it.
Add an input to your form and view your source code. Grab the ID of the input and replace the item4_text_1 in my code with yours. Then replace the item4 with the id of the div item number that holds the label and the input.
<script>
var stampmonths = new Array( "01","02","03","04","05","06","07","08","09","10","11","12");
var thedate = new Date();
var code =(stampmonths[ thedate.getMonth()] + thedate.getDate() + thedate.getFullYear() + thedate.getSeconds() );
window.onload = function() {
document.getElementById('item4').style.display = 'none';
document.getElementById('item4_text_1').value = code ;
//alert(code);
}
</script>
var stampmonths = new Array( "01","02","03","04","05","06","07","08","09","10","11","12");
var thedate = new Date();
var code =(stampmonths[ thedate.getMonth()] + thedate.getDate() + thedate.getFullYear() + thedate.getSeconds() );
window.onload = function() {
document.getElementById('item4').style.display = 'none';
document.getElementById('item4_text_1').value = code ;
//alert(code);
}
</script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Thanks so much Eric, I've got it working 
Thank you for taking time to answer my question.
I hope it's useful to others as well.

Thank you for taking time to answer my question.
I hope it's useful to others as well.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.