function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Georgy PeshkovGeorgy Peshkov 

Give different visibility to the button on the related list depending on record type

Hello, all.
Is it possible to show or hide the custom button on the related list depending on the record type of the object where this related list is located.
For example, I need the custom button "Create customer account" to be shown only on Account pages with "Customer" record type and hidden on other Account record types. Similarly, I need the custom button "Create reseller account" to be shown only on Account pages with "Reseller" record type.