I want to redirect to a api call (WITH PARAMS)when a button clicked inside a doctype and the response should be populated in the fields for that what should i do
I have created the button for the click event do i need to write the click event code on backend
or (server or client) script . i need call an api with the params
@NCP
For a simple scenario, you can use a client script. For a complex scenario, you should use the frappe.call function.
1 Like
Hi @amal_31845
Please Read This Document and watch this video
https://frappeframework.com/docs/user/en/guides/app-development/adding-custom-button-to-form
Thank You!
1 Like