Accessing main form data in the sub form

I have a scenario where I had created a form and within its tab section introduced an another form (written in a separate file and accessed here), now the problem is i need to get the value of a field say ‘mobile number’ from the main form into the nested sub form.
Pls provide a suggestion

Thank you