Foreign Key is not appear automatically as default when inserting new record on Form_Detail that use modalform=in editing and inserting

Hi,

I created 2 Form,

1.Form_Header [Single Record]
2.Form_Detail [EditableGrid(View), Use Modalform=in editing and inserting]

Problem when inserting new record on Form_Detail Form [Field ID which is
foreign key doesn’t appear when inserting new record]

Foreign Key is not appear automatically as default when inserting new record
on Form_Detail that use modalform=in editing and inserting

i attached screenshot for the problem