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.

enter image description here

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.