Open jwildfire opened 3 months ago
Copilot implementation via @samussiah
// Add an onload callback to document.
document.addEventListener('DOMContentLoaded', function() {
// parse URL parameters
const urlParams = new URLSearchParams(window.location.search);
// Get the site id from the URL parameters.
const siteId = urlParams.get('site_id');
console.log(siteId);
// Update the dropdown to the selected site.
document.getElementById('overall-site-select').value = siteId;
})
Consider bumping to v2.1
Feature Details
Need to write some custom js to grab and parse
document.URL
and then set the selected value in the dropdownWill allow us to easily link to specific site/KRI combos in the report
Example Code
Possible Implementation
Additional Comments