I have an entity named Franchise Config and on one of its Forms named Franchise Defaults (shown below) I have many Subgrids (sub grids names are circled in purple below) that point to various views on a different entity named Franchise Defaults.
An example of one of the subgrids showing the name and label along with the selected view can be seen below.
I have customized the + new franchise default button (circled in turquoise above) via ribbon workbench so that it executes a custom script.
I need to make the custom script get either the name or label of the subgrid properties area the + new franchise default button is clicked from.
I need to pass the name or label of the subgrid to another function that opens a new create form and pre-populates a bunch of different values based on the name or label that is passed.
How can I get the name or label of the subgrid properties area the + new franchise default button is clicked from via JavaScript that runs when the button is clicked?
Any help would be greatly appreciated.