Can we rename this button label

can we rename this button label

Which button?

This one

Plesae apply the listview client script

Add Technician Communication → Add TC

frappe.listview_settings['Technician Communication'] = {
    refresh: function (listview) {
        frappe.after_ajax(() => {
            const button = document.querySelector('.btn-primary[data-label="Technician Communication"]');
            if (button) {
                const span = button.querySelector('span.hidden-xs span');
                if (span) {
                    span.innerHTML = '<span class="alt-underline">A</span>dd TC';
                }
            }
        });
    }
};

Now you can set it according to the scenario. spell and doctype check.

2 Likes

hi @NCP i have try this script but not work


Please reload Ctrl+Shift+R and check it.

because it worked for us.

@NCP now its working thank you