I know forms can do tabs at the top, but there seems to be no option for tabbing things in the middle of a view, so I made a tab menu through a data label.
However when I click one of the tabs I want it to click an invisible button (since I figured it would be easier than figuring out how to launch a rule directly)
These are the JS commands I have tested but the button is never clicked:
$( ''name="ButtonName'"] ').click();
document.getElementById("ButtonName").click();
var dsmButton = document.getElementById("ButtonName");
dsmButton.click();
Neither of those examples worked for clicking the button, and I am not sure why.
The html in the data label renders fine and just to test it I did a document.write("test");
and that worked, so I know the script is executing. Does anyone know how to trigger a button click through js?