Feature request #10295
Add auto increment field for non database formats
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||18721|
It would be usefull to add a QGIS Field edittype called "Serial" and implementing auto-incrementation for non-database formats :
- in the form, make the field visible but not editable
- for new object, get the next number
QGIS could store the current serial state in the project file and update it during the commit, and manage multiple inserts and errors on insert
#1 Updated by gcarrillo - over 3 years ago
The AutoFields plugin  helps you achieve almost all you mentioned, except making the field non-editable.
Watch this video of an automatic id field for Shapefiles (and any other editable vector layer in QGIS).
Please give it a try. If it works for you, we could close this issue.