Remove Activity Dropdown from Projects

As the heading,

How can i remove the activity dropdown from projects, we dont use time sheets so the functionality is pointless.

Hi @cmdeep,

That for, please apply the client script for Project.

frappe.ui.form.on('Project', {
	refresh: function(frm) {
		$('.row.form-dashboard-section.form-heatmap').hide();
	}
});

Output:

Thank You!

1 Like

Always there from me @NCP thanks man

If i wanted to edit the connections dropdown, ie remove MAterial Request remove stock entry etc?

That for, please apply it.

$('div[data-doctype="Material Request"], div[data-doctype="Stock Entry"]').hide();

Output:

Thank You!

1 Like

@NCP always a lgend i need to send you a coffee

1 Like

can i place this in the client side script

Yes @cmdeep

frappe.ui.form.on('Project', {
	refresh: function(frm) {
		$('.row.form-dashboard-section.form-heatmap').hide();
		$('div[data-doctype="Material Request"], div[data-doctype="Stock Entry"]').hide();
	}
});
1 Like

Instead of haraasing at every single point, is there a link you can give me that will help me edit those things that i want. see code below

frappe.ui.form.on(‘Project’, {
refresh: function(frm) {
$(‘.row.form-dashboard-section.form-heatmap’).hide();
$(‘div[data-doctype=“Material Request”], div[data-doctype=“Stock Entry”], div[data-doctype=“BOM”], form-link-title[span=“Material”]’).hide();
}
});