How to submit custom html form

I have created a custom html form in pages directory.How to submit custom generated html form to database.
<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 function. For reference check below files

You can also create custom doctype,


if i want add 50 data from my form should i add 50 item in args of function.Or is there any better way.

Yes you need to prepare the json for the 50 items and has to pass to the