Hello,
I´m facing this issue with a custom script that auto-generates web forms and I can´t figure where to solve this issue. The problem is this:
My script goes as follows:
frappe.ui.form.on("xxxx", {
create_webform: function(frm) {
frappe.call({
method: "frappe.client.get_list",
args: {
doctype: "yyyy",
parent: "zzz",
filters: {
parent: frm.doc.name,
},
fields: ["title", "route", "published", "login_required", "success_message", "success_url"]
},
callback: function(r) {
r.message.forEach(function(v) {
frappe.call({
method: "frappe.client.insert",
args: {
doc: {
"doctype": "Web Form",
"name" : v["title"],
"title" : v["title"],
"route" : v["route"],
"doc_type" : "Preguntas",
"module" : "blablabla",
"published" : v["published"],
"success_message" : v["success_message"],
"success_url" : v["success_url"],
"web_form_fields":[
],
}
}
})
})
}
})
}
});
I´ve found this topic (Website Generator error - #2 by rmehta) that seems to have the same error but i need to solve it on client side. I´ve tried with
"get_page_info": v["title"]
But it doesn´t work