How to change Status value

How to change bid accepted instead of completed.

Hi @THANGAPANDIAN,

It is a makeshifter script so please try it. maybe it help you.

Only worked on the doctype level, not the listview level.

Client Script:

frappe.ui.form.on('Project', {
    refresh: function(frm) {
        frm.page.clear_indicator();
        var customStatus = frm.doc.pro_status;
        
        var indicatorStatuses = {
            'Open': 'orange',
            'In Progress': 'blue',
            'Completed': 'green'
            // Add more custom statuses and their corresponding colors here
        };

        if (indicatorStatuses[customStatus]) {
            frm.page.set_indicator(__("Custom Status: ") + customStatus, indicatorStatuses[customStatus]);
        } else {
            frm.page.clear_indicator();
        }
    }
});

Thank You!

3 Likes

Thank you so much, brother

Thanks a Bunch