Select your region
Enter your details to download
      var entryId = '0';
      var saveSubmissionEndPoint = "/actions/form-factory/default/save-submission";
      
            
        theReportAreas["722711"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_InnerPremium.pdf";
        toEmailAddress["722711"] = "[email protected]";
        theReportName["722711"] = "Bayside, Boroondara, Port Phillip & Stonnington";
      
            
        theReportAreas["724221"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_Ballarat-CentralVic.pdf";
        toEmailAddress["724221"] = "[email protected]";
        theReportName["724221"] = "Ballarat & Central Victoria";
      
            
        theReportAreas["724564"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_GeelongBellarine.pdf";
        toEmailAddress["724564"] = "[email protected]";
        theReportName["724564"] = "Geelong & The Bellarine Peninsula";
      
            
        theReportAreas["724422"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_GlenEiraKingston.pdf";
        toEmailAddress["724422"] = "[email protected]";
        theReportName["724422"] = "Glen Eira, Kingston & surrounds";
      
            
        theReportAreas["724712"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_InnerWest.pdf";
        toEmailAddress["724712"] = "[email protected]";
        theReportName["724712"] = "Inner West";
      
            
        theReportAreas["724824"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_Manningham.pdf";
        toEmailAddress["724824"] = "[email protected]";
        theReportName["724824"] = "Manningham";
      
            
        theReportAreas["724892"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_MaroondahYarraRages.pdf";
        toEmailAddress["724892"] = "[email protected]";
        theReportName["724892"] = "Maroondah, Yarra Ranges & surrounds";
      
            
        theReportAreas["725007"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_Monash.pdf";
        toEmailAddress["725007"] = "[email protected]";
        theReportName["725007"] = "Monash";
      
            
        theReportAreas["725093"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_MorningtonPeninsula.pdf";
        toEmailAddress["725093"] = "[email protected]";
        theReportName["725093"] = "Mornington Peninsula";
      
            
        theReportAreas["725161"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_North.pdf";
        toEmailAddress["725161"] = "[email protected]";
        theReportName["725161"] = "Inner North, Inner North West, Northern & Richmond";
      
            
        theReportAreas["725374"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_NorthEast.pdf";
        toEmailAddress["725374"] = "[email protected]";
        theReportName["725374"] = "North East";
      
            
        theReportAreas["725487"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/TheReportFY26_Whitehorse.pdf";
        toEmailAddress["725487"] = "[email protected]";
        theReportName["725487"] = "Whitehorse";
      
            
                  
      $(function () {
      
      
        $('select#theReportSelect').on( 'change', function() {
          var $this = $( this );
          $('#theReportAreas').val(theReportAreas[$this.val()]);
          $('#toReportAreasEmailAddress').val(toEmailAddress[$this.val()]);
          $('#theReport_toEmailAddress').val(toEmailAddress[$this.val()]);
          $('#reportName').val(theReportName[$this.val()]);
        });
      
        
        if(entryId != 0){
          setDownloadFormValues(entryId);
        }
      
        var submitted = 'no';
      
      
        if (submitted == 'yes') {
      
            $('#projectContact').hide();
      
            $('#projectContactSuccess').show();
        }
      
        var $form = $('#theReports');
      
        $form.on('submit', function (e) {
          // Prevent the form from actually submitting
          e.preventDefault();
      
          // Get the post data
          var data = $(this).serialize();
      
            $('#theReports').hide();
      
            $('#theReportSending').show();
      
    
           $.ajax({
            url: saveSubmissionEndPoint,
            method:"POST",
            dataType: 'json',
            data:$(this).serialize(),
            beforeSend:function(){
             $('form button[type=submit]').attr('disabled','disabled');
            },
            success:function(response)
            {
             $form[0].reset();
             $('button[type=submit]').attr('disabled',false);
              if (response.success) {
      
                  $('#theReports').hide();
      
                  $('#theReportSending').hide();
      
                  $('#theReportSuccess').show();
      
                  document.location = '/the-report/the-report-is-on-its-way';
      
      
              } else {
      
      
                  $('#theReportSending').hide();
      
                  $('#theReportError').show();
              }
            }
           });
      
      
      
        });
      
      
      });
    
