zsong
August 9, 2025, 2:19am
1
I’ve use Builder to develop a home page and put a web form in a hero container (see attached picture). But I don’t know how to deal with the submit button and where does the filled information go. I couldn’t find an example tutorial.
Need some help or instruction.
Thanks!!
1 Like
avc
August 9, 2025, 6:32am
2
Hi:
You will need to build your logic to fetch or push data to somewhere (frappe backend or others …).
Check this:
Hi @Kaushik_Bansode @bdalmonico :
Create textbox and button elements on Builder page. Use HTML attributes to provide id to each one. (mytextbox and mybutton)
[image]
[image]
Create a server script (API) on Desk. Method name new-todo
[image]
request_args = frappe.form_dict
doc = frappe.new_doc("ToDo")
doc.description = request_args.get("description")
doc.insert()
frappe.response["message"] = doc
On Builder page create a client script with this:
document.getElementById('mybutton').addEve…
Hope this helps.
1 Like