Child doctype webform value missing parent & parenttype

I created a web form for my child table and i try to update the web form and that time i am getting error like the parent and parenttype value is missing. and then i try to added the parent and parenttype using frappe.web_form.doc.parent= “my parent doc” this way also updated other fields but still when i save form the error pop up, how to resolve this issue