Web form error “Error: Data missing in table: Table Name”

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 :slight_smile:

Looks like the DB is out of sync with the versions…try…

bench migrate

1 Like

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

1 Like

It works like a charm. Thank you !!