Forum Discussion
GiuseppeMacri
7 years agoQrew Captain
Can you guys explain this for us noobs.
I currently implemented IOL on the form, made a code page called "Tab.JS" with the code below:
and i made a URL button using the sample url above. The tab link for the tab i want to get to is tab_t30_link.
I havent used the $("#tab_t2_link a").click(); snippet. Is this where my issue is?
I currently implemented IOL on the form, made a code page called "Tab.JS" with the code below:
(function(){})();:
var querystring=document.location.search;
if(/a=er/i.test(querystring)) {
var urlParams = new URLSearchParams(window.location.search);
if (urlParams.has("tab")) {
$('#${urlParams.get("tab")} a').click();
}
}
and i made a URL button using the sample url above. The tab link for the tab i want to get to is tab_t30_link.
I havent used the $("#tab_t2_link a").click(); snippet. Is this where my issue is?
_anomDiebolt_
7 years agoQrew Elite
What the code does is on an edit record page it looks for a query parameter named tag and if it is is found generates a click event on that tab.
Since the code uses URLSearchParams you have to use a supported browser:
https://caniuse.com/#feat=urlsearchparams
Since the code uses URLSearchParams you have to use a supported browser:
https://caniuse.com/#feat=urlsearchparams