Hi All,
I’m getting an error "Error: Data missing in table: " while trying to submit a web form which is linked with a new doctype and child table.
Please advice
Hi All,
I’m getting an error "Error: Data missing in table: " while trying to submit a web form which is linked with a new doctype and child table.
Please advice
Looks like the DB is out of sync with the versions…try…
bench migrate
Add a validate handler as client script
frappe.web_form.validate = () => {
let data = frappe.web_form.get_values();
frappe.web_form.doc['table_name'] = data.table_name;
return true;
};
ref: Data not saved in web form child table - #25 by marynvdl
It works like a charm. Thank you !!