Auto Increment value for field collection I have a field collection group to which I am importing values using Field Collection Feeds Importer. This requires a unique identifier field within the field collection. This has posed an issue where the user has to keep track of these identifier fields. One way to avoid this is having an auto increment field so that when a new row is added it automatically auto increments this field without any user interaction. This would also help maintain the correct sequence at all times and avoid any user editing accidental mistakes.

This is how it is right now


Any ideas or existing functionality to use this.

Thanks.
The Serial Field module should be able to do that:


  This module provides an auto-increment (serial) field.
  
  Unlike Drupal's built-in auto-increment node ID, which is global and
  shared by nodes belonging to all content types, serial fields are
  managed per content type (D6) / entity (D7). For example, the serial
  field of an Invoice instance will generate a unique sequential number
  (starting at 1, then 2, etc.) exclusively for Invoice instances.