I’m trying to add a Table
fieldtype in frappe.prompt but I’m getting an error.
Below is the code and error log:
frappe.prompt([
{
'fieldname': 'checkbox',
'fieldtype': 'Table',
'label': 'checking testing',
'reqd': 1,
'options': 'Cancellation Reasons'
},
],
'Enter Reason',
'Submit'
)
form.min.js:3232 Uncaught TypeError: this.df.get_data is not a function
at Class.get_data (form.min.js:3232)
at Class.refresh (form.min.js:3041)
at HTMLDivElement.<anonymous> (desk.min.js:6057)
at HTMLDivElement.dispatch (jquery.min.js:3)
at HTMLDivElement.$event.dispatch (report.min.js:3097)
at HTMLDivElement.r.handle (jquery.min.js:3)
at Object.trigger (jquery.min.js:4)
at HTMLDivElement.<anonymous> (jquery.min.js:4)
at Function.each (jquery.min.js:2)
at n.fn.init.each (jquery.min.js:2)