Skip to content

Instantly share code, notes, and snippets.

@HubSpotHanevold
Created October 29, 2025 18:30
Show Gist options
  • Select an option

  • Save HubSpotHanevold/2ad5c59c62beb76fee407ac59a679724 to your computer and use it in GitHub Desktop.

Select an option

Save HubSpotHanevold/2ad5c59c62beb76fee407ac59a679724 to your computer and use it in GitHub Desktop.
assign team contact via script
<script>
window.addEventListener('load', function() {
const url = window.location.href.toLowerCase();
const teamInput = document.querySelector('input[name="team__contact_"]');
if (teamInput) {
if (url.includes('detroit')) {
teamInput.value = 'NexGreen-Detroit';
}
}
});
</script>
@erinhendersonfairwaylawnscom
<script> window.addEventListener('load', function() { const url = window.location.href.toLowerCase(); const teamInput = document.querySelector('input[name="team__contact_"]'); if (teamInput) { if (url.includes('agape')) { teamInput.value = 'Agape'; if (url.includes('sprinklerdrainage')) { teamInput.value = 'Andy's'; if (url.includes('arborbay')) { teamInput.value = 'Arbor Bay'; if (url.includes('drjacks')) { teamInput.value = 'Dr. Jack's'; if (url.includes('insectfree')) { teamInput.value = 'Earth's Best'; if (url.includes('easternexterminating')) { teamInput.value = 'Eastern Exterminating'; if (url.includes('fairwaylawns')) { teamInput.value = 'Fairway'; if (url.includes('farrow')) { teamInput.value = 'Farrow'; if (url.includes('grogreen')) { teamInput.value = 'GroGreen'; if (url.includes('go-island')) { teamInput.value = 'Island Environmental'; if (url.includes('Kapps')) { teamInput.value = 'Kapp's'; if (url.includes('leapfroglandcare')) { teamInput.value = 'Leapfrog Landcare'; if (url.includes('luvalawn')) { teamInput.value = 'Luv A Lawn'; if (url.includes('detroit')) { teamInput.value = 'NexGreen-Detroit'; if (url.includes('columbus')) { teamInput.value = 'NexGreen-Ohio: Includes Columbus and Westerville'; if (url.includes('westerville')) { teamInput.value = 'NexGreen-Ohio: Includes Westerville'; if (url.includes('nexgreen')) { teamInput.value = 'NexGreen'; if (url.includes('On The Green')) { teamInput.value = 'On The Green'; if (url.includes('plantitearth')) { teamInput.value = 'Plant It Earth'; if (url.includes('puregreen')) { teamInput.value = 'Pure Green'; if (url.includes('Rainscapes')) { teamInput.value = 'rainscapes'; if (url.includes('realgreen')) { teamInput.value = 'Real Green'; if (url.includes('rturfsolutions')) { teamInput.value = 'Real Turf Solutions'; if (url.includes('spsonline')) { teamInput.value = 'Scientific Plant Services'; if (url.includes('simplygreen')) { teamInput.value = 'Simply Green'; if (url.includes('southerncarelawnandpest')) { teamInput.value = 'Southern Care Lawn and Pest'; if (url.includes('tdigreenservices')) { teamInput.value = 'TDI Services'; if (url.includes('tdi.services')) { teamInput.value = 'TDI Services'; if (url.includes('thegreenqueen')) { teamInput.value = 'The Green Queen'; if (url.includes('thelawnranger') { teamInput.value = 'The Lawn Ranger'; if (url.includes('turfwizards') { teamInput.value = 'Turf Wizards'; if (url.includes('yourgreenteam') { teamInput.value = 'Your Green Team'; if (url.includes('planthealthcaresystems') { teamInput.value = 'Plant Health Care Sys'; } } }); </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment