I have 1 field collection in that added the entity reference field and set widget "Inline entity form-complex". Now i want to show auto increment number in "Game Code" text field. I have tried with hook_inline_entity_form_entity_form_alter but not getting proper result.
In above image i want "Game Code" field auto increment i.e G100004,G100005. How can i achieve this? Here i'm using Inline Entity Form