• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Autogenerated number

Autogenerated number 11 years 11 months ago #23600

  • peeps2
  • peeps2's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hello,

we are building a special form that we need to give an autogenerated transaction number to. My question is can I somehow generate a transaction-number so that numbers start from #1 and then the next would be #2 and so on and each new submission would get it's own number. Note that we have a few forms so the normal form-submission not usable since it must be in numerical order for this form only. Also if deleting old submissions then the numbering in the backend starts again and what we need is a submission numbering for one form only and it should have no affect if the submissions are deleted in the backend.

Any system to configure this?

Greetings,
Anne
The administrator has disabled public write access.

Autogenerated number 11 years 11 months ago #23656

  • peeps2
  • peeps2's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hi,

thanks for the link. Do I understood it right, I should make a new field (is hidden field ok or what?) and add to it's Default Value -field the following code:
//<code>
return date('omdHis') . 'x' . rand(1000,9999);
//</code>

But this does not generate a numbers in order. I don't mind having the beginning of the "number" as a date, but how do I get the following numbers from 1...2...3.. etc in order?

Thanks!

Greetings,
Anne
The administrator has disabled public write access.

Autogenerated number 11 years 11 months ago #23661

Hi:

You may want to try the tip in this article: www.rsjoomla.com/support/documentation/v...for-submissions.html

Sorry for not giving this as a clickable link, but the forum doesn't want to add the toolbar for me.

Ta ra 'wan,

CM
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!