Skip to main content
kcsdfqeqw
Participating Frequently
March 25, 2017
Question

Create a sequential number every time receive hits submit button

  • March 25, 2017
  • 3 replies
  • 333 views

I am trying to create a request form for specific users (only 3) but will require the reference/invoice number to be created every time the receiver press the submit button on the form. The number should also increase every time.

In fact, can I even customer the number to each individual? Eg Person A will start from 0000, Person B start from 4000, Person C starts from 7000?

Please help!!

This topic has been closed for replies.

3 replies

kcsdfqeqw
kcsdfqeqwAuthor
Participating Frequently
March 25, 2017

Hi, Thank you for the swift responses!!

I will try the KHKonsulting link and reply here if I have problem getting the code to work!

Thanks again!!

Karl Heinz  Kremer
Community Expert
Community Expert
March 25, 2017

To do this the right way, you would need to have a server process that hands out the sequential numbers. See here for an example of how you can do this when everybody is using Adobe Acrobat: Getting a Serial Number Into a Form Using SOAP - KHKonsulting LLC

If you also have users who only have the free Reader, you would have to use FDF to get data from the server. 

try67
Community Expert
Community Expert
March 25, 2017

Sure, that's possible. Let's this field is called "ID". You can add this code to your Submit button:

this.getField("ID").value = Number(this.getField("ID").value)+1;

Then just set the default value of this field to a different value in the copy you send to each person.