I was trying to add a button from the actions dropdown in detail view. The button when clicked should change the account status field.
Here is the code I have added in suitecrm/custom/modules/Accounts/metadata/detailviewdefs.php but this is not changing the status field value. The Account page looks refreshed as it is going to the Home page and coming back to the same account page after clicking on the Button.
‘customCode’ => ’