Generate a form number - Page 1 -...

User 2377669 Photo


Registered User
6 posts

Hi there.
I have a form that we use for custom orders, and I want a way to assign each entry a number in sequence that appears on the email and on the form itself.

purpose would be for tracking, so i can say "custom order 320 has shipped"

any idea how to achieve this? Right now S-Drive numbers the records but there isn't a way to use this record number as far as i know in the response email

thanks
Joe McManus
User 187934 Photo


Senior Advisor
20,196 posts

Like this?
http://www.coffeecup.com/forums/web-for … ce-number/
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
User 2377669 Photo


Registered User
6 posts

probably.. but for dummies LOL
I can't paste html into my form for some reason, so i need to type the code manually and i am probably making mistakes.
User 187934 Photo


Senior Advisor
20,196 posts

Are you using an html element?
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
User 2377669 Photo


Registered User
6 posts

yes, the OS X version. The paste function is disabled for some reason.
says paste error. the following operation failed.

this is web form builder returning the error.
version 2.5
User 187934 Photo


Senior Advisor
20,196 posts

Try restarting the app.
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
User 2377669 Photo


Registered User
6 posts

that worked. It took two restarts,
what a strange little bug.
OK so now the part i don't understand is this

Adjust the item1 to the number element on your form that you want the random number to show in.
where do i get the item number? I have created a number field that has been called 'number30' is that it?
User 187934 Photo


Senior Advisor
20,196 posts

Look at your form source code and see what the div id is that holds the input and the label.
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
User 2701178 Photo


Registered User
4 posts

Hello,
I'd tried it too, but nothing works :/ Could someone explain it for me step by step?
Need a booking number like: 2015-01, 2015-02 or 201501, 201502
which should be also in my confirmation/admin emails
Thank you!!!
User 187934 Photo


Senior Advisor
20,196 posts

Hi Viktoria,
1. Place an html element into your form.
2. Paste the code below into it.
<script src="common/libs_js/jquery-1.4.4.min.js"></script> <script type="text/javascript">$(document).ready(function(){
var number = 1 + Math.floor(Math.random() * 999999);
//$("#item1").hide();
$("input[name='myfieldname']").val(number);

});</script>

3. Adjust the myfieldname to the name of the number input your wanting to use.
4. If you want it hidden preview your form and look at the source code by right clicking and selecting view source.
5. Now look near the number input for a div with an id similar to item1 like in my code. It will be just a few lines above.
6.Then remove the two comment // from my example code and adjust the item1 to what you found in your source code.

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

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.