wilburg created the topic: Self incrementing integer field?

mihaela replied the topic: Self incrementing integer field?

Hello,

Here is an idea for a solution that might work for you.

The other approach would be to get the value in that field from the last submission and increase it by one.
Here is how to make it work.
Please go to form's Advanced properties > More options > Form pieces and in Before Form section set Type to Custom and in the code area below put the following code:

NOTE: In the code above replace FIELDNAME with the Name of the field in your form. Also, replace 7929 with the element number of the field in your form where the integer should be displayed. You can get it by inspecting the element from the ID.

The other approach would be to write a query that would count the number of records for that specific form, but suggested above might be a better solution.

Summer Sale!

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

E-mail

All Extensions Subscription

Get 1 yearaccess to all of our current and future products and 1 year of professional support -- 99for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!