Build with IDX Broker Forums IDX Broker Control Panel Javascript in Control Panel Add Market Report Button to details page based on listing data

Viewing 1 reply thread
  • Author
    Posts
    • Nick Leech
      Keymaster
      Post count: 179
      <script>
      function gotoMarketReport() {
          let city = document.querySelector('.IDX-detailsAddressCity').innerText
          city = city.replace(' ', '-')
          window.location = 'http://clientsdomainname.idxbroker.com/idx/market-reports/a001/city/'+city+'-{{state}}'
      }
      </script>
      
      <div id="marketreport"><input id="marketreportbtn" type="button" value="Market Report" onclick="gotoMarketReport()" /></div>

      You will need to replace the clients domain name and the idxID to match the clients MLS.

      0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
      You need to be a registered member to rate this post.
      Loading...
    • Tim Kurkowski
      Participant
      Post count: 5

      Dude. This is AWESOME!

      Thank you SO MUCH FOR THIS.

      0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
      You need to be a registered member to rate this post.
      Loading...
Viewing 1 reply thread
  • You must be logged in to reply to this topic.