Dear Awesome Team,
We wish to open a default TAB in the form (see image, the form contains many TABS ) as and when required.
Sometime, User needs to be directed to specific TAB when he opens that form.
Regards
Dear Awesome Team,
We wish to open a default TAB in the form (see image, the form contains many TABS ) as and when required.
Sometime, User needs to be directed to specific TAB when he opens that form.
Regards
Hi @Sohailans:
Create a client script for Customer, and use scroll_to_field
to “navigate” to the first field of the desired tab. In this case, Tax tab.
frappe.ui.form.on('Customer', {
refresh(frm) {
frm.scroll_to_field("tax_id")
}
})
Maybe you would not want this behavior in all cases, so play with different events.
Check this:
https://frappeframework.com/docs/user/en/api/form#form-events
Hope this helps.