I have created a custom html form in pages directory.How to submit custom generated html form to database.
example:
<form> <input type = "text" name='name'> </form>
1 Like
For custom page you need write python function to make records and call the method using frappe.call function. For reference check below files
https://github.com/frappe/erpnext/blob/develop/erpnext/accounts/page/pos/pos.js#L1579-L1596
https://github.com/frappe/erpnext/blob/develop/erpnext/accounts/doctype/sales_invoice/pos.py#L281-L311
You can also create custom doctype,
https://frappe.github.io/erpnext/user/manual/en/customize-erpnext/custom-doctype
2 Likes
@rohit_w
if i want add 50 data from my form should i add 50 item in args of frappe.call function.Or is there any better way.
thanks
Yes you need to prepare the json for the 50 items and has to pass to the frappe.call