In sales form in that form have link for popup in that popup have a form after filling all details again asking required field from background form

enter image description here

enter image description here

please give me solution for this problem in that first img add customer link and second img is popup