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

How can I tell the name of the TAB from which my custom button is clicked?

I have a custom button on a standard layout. This button does stuff, and it does that stuff correctly. To help with navigation while doing stuff, I would like to know the name of the TAB the user was on when he clicked the button.


You may have guessed, the same button is going on lots of pages. I would rather not hard-code the name of the page on the URL.


Is there a way to auto-magically figure out the name of the TAB? I keep stressing TAB because I already know the name of the OBJECT -- and since the tab and the object may have different names, I want the user to feel comfortable that the button is sending him to the right place.