Attach button not working after submit

Hai everyone,
I face a issue in custom doctype, after a submit am trying to add some files in child table but it is getting added in the sidebar attachment instead of in that field.
Anyone faced this issue?

Regards
Joseph