Forum Discussion
_anomDiebolt_
8 years agoQrew Elite
Set up IOL with code similar to this:
Then form a URL with a query parameter named "tab" that identified the <li> containing the <a> of the tab you want to open:
https://SUBDOMAIN.quickbase.com/db/DBID?a=er&rid=600&dfid=15&;tab=tab_t2_link
Notes:
(1) substitute your SUBDOMAIN and DBID
(2) substitute your tab parameter
(3) I only implemented the code for edit records pages.
(4) Test manually in Chrome. I used the methods URLSearchParams() and urlParams() which may or may not be supported in your browser. Easy to provide alternate code if needed.
(5) If there is no &tab= parameter the code will run on the appropriate pages but it will not change anything.
(6) This is a general technique of passing an custom parameter on the URL which can be used for many different purposes.
(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();
}
}
})();:
Then form a URL with a query parameter named "tab" that identified the <li> containing the <a> of the tab you want to open:
https://SUBDOMAIN.quickbase.com/db/DBID?a=er&rid=600&dfid=15&;tab=tab_t2_link
Notes:
(1) substitute your SUBDOMAIN and DBID
(2) substitute your tab parameter
(3) I only implemented the code for edit records pages.
(4) Test manually in Chrome. I used the methods URLSearchParams() and urlParams() which may or may not be supported in your browser. Easy to provide alternate code if needed.
(5) If there is no &tab= parameter the code will run on the appropriate pages but it will not change anything.
(6) This is a general technique of passing an custom parameter on the URL which can be used for many different purposes.