Skip to main content
Skip table of contents

Open Table Fields By Default

Live Fields have access to the DOM, and can trigger events within it. In some cases, it can be helpful to users if the Table Field Indexer is open by default. A very simple script can trigger this behavior.

CODE
document.getElementsByClassName("tablefield-button")[0].click();
return "Table Field Opened By Script";

Manipulating the DOM of the GlobalSearch Viewer is generally discouraged, but possible. Advanced users who go beyond very basic scripts like this one should use caution, and understand that elements your scripts rely on have and will change between version upgrades.

This is an alternative version with a 2000 millisecond delay. The delay is here to try to accommodate a zoom display issue. Where the documents loads too zoomed in because of this script and delayed loading of documents. As versions change display issues can happen.

CODE
setTimeout(function(){document.getElementsByClassName("tablefield-button")[0].click();
return "Table Field Opened By Script";},2000);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.