Hello everyone
I need help, how can I call the customer registration quick entry field in another part of the system using a button.
Can someone help me with this please.
Hello everyone
I need help, how can I call the customer registration quick entry field in another part of the system using a button.
Can someone help me with this please.
Any idea how to do this ?
Hi:
Just use frappe.new_doc("Customer")
from action button. This will show quick entry form.
This sample adds an action menu with “Add customer” button. Use this code in a client script for Item doctype.
frappe.ui.form.on('Item', {
refresh(frm) {
frm.add_custom_button("Add customer", function(){
frappe.new_doc("Customer")
}, "Actions");
}
});
Hope this helps.
Yes, it worked for me,
How can I replace the default “Add a new address” form on the website with the Customer Registration Quick Entry Form can you help me with this please?
Hi:
I’m glad to be helpful.
Please, open other thread on forum with the new question.
It will make easier search for help to other users.
Thanks.