Can we remove the Options or buttons in form view directly in any doctype

Hi there how are you,
my question is in each doctype there are buttons in forms before or after submitted document.
can these button removed directly in some setting or other way.
or we have to use the client script to remove or hide them

for example here i want to remove the status option in action button is it possible
image

Hi @Mubasher

If you need to remove buttons, use remove_custom_button in refresh.

frappe.ui.form.on(Doctype, {
	refresh(frm) {
		setTimeout(() => {
			frm.remove_custom_button("Set Project Status", "Actions");
		}, 500);
	},
});

i know how to do through client script my question is , is it possible without script like customize form or settings

No, i think there is no conditions to display these buttons.