I wish to replace/remove the default new button (refer to image below). Right now, this button shows a Visualforce page when clicked. I have overridden the default new button by a VF page.
However, this override also overrides the related list button on the parent object like this :
The button that you see here is a custom button that shows the default "New Enroled Contact" screen. However, this button is not working for some reason... it is showing the same VF page as the list view button.
How do I change the behaviour of list view button while retaining related list button's behaviour?
I could use a visualforce page, but how would I identify from where the page is being called?