var entryId = '546912';
var saveSubmissionEndPoint = "/actions/form-factory/default/save-submission";
theReportAreas["549198"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Corporate_TheReport_FY25.pdf";
toEmailAddress["549198"] = "
[email protected]";
theReportName["549198"] = "Welcome to the The Report FY25";
theReportAreas["549799"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/BallaratCentralVic_TheReport_FY25_v2.pdf";
toEmailAddress["549799"] = "
[email protected]";
theReportName["549799"] = "Ballarat & Central Victoria";
theReportAreas["546912"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Bayside_TheReport_FY25.pdf";
toEmailAddress["546912"] = "
[email protected]";
theReportName["546912"] = "Bayside";
theReportAreas["549944"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/BellarinePeninsula_TheReport_FY25_v2.pdf";
toEmailAddress["549944"] = "
[email protected]";
theReportName["549944"] = "Bellarine Peninsula";
theReportAreas["550078"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Boroondara_TheReport_FY25.pdf";
toEmailAddress["550078"] = "
[email protected]";
theReportName["550078"] = "Boroondara";
theReportAreas["550209"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Geelong_TheBellarinePeninsula_TheReport_FY25_v2.pdf";
toEmailAddress["550209"] = "
[email protected]";
theReportName["550209"] = "Geelong & The Bellarine Peninsula";
theReportAreas["550346"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/GlenEira_TheReport_FY25.pdf";
toEmailAddress["550346"] = "
[email protected]";
theReportName["550346"] = "Glen Eira";
theReportAreas["550472"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/InnerNorth_TheReport_FY25.pdf";
toEmailAddress["550472"] = "
[email protected]";
theReportName["550472"] = "Inner North";
theReportAreas["550598"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/InnerWest_TheReport_FY25.pdf";
toEmailAddress["550598"] = "
[email protected]";
theReportName["550598"] = "Inner West";
theReportAreas["550724"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Kensington-MooneeValley_TheReport_FY25.pdf";
toEmailAddress["550724"] = "
[email protected]";
theReportName["550724"] = "Kensington & Moonee Valley";
theReportAreas["550857"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Kingston_TheReport_FY25.pdf";
toEmailAddress["550857"] = "
[email protected]";
theReportName["550857"] = "Kingston";
theReportAreas["550985"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Manningham_TheReport_FY25.pdf";
toEmailAddress["550985"] = "
[email protected]";
theReportName["550985"] = "Manningham";
theReportAreas["551114"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Maroondah_TheReport_FY25.pdf";
toEmailAddress["551114"] = "
[email protected]";
theReportName["551114"] = "Maroondah";
theReportAreas["551242"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Monash_TheReport_FY25.pdf";
toEmailAddress["551242"] = "
[email protected]";
theReportName["551242"] = "Monash";
theReportAreas["551368"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/MorningtonPeninsula_TheReport_FY25_v2.pdf";
toEmailAddress["551368"] = "
[email protected]";
theReportName["551368"] = "Mornington Peninsula";
theReportAreas["551494"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/NorthEast_TheReport_FY25.pdf";
toEmailAddress["551494"] = "
[email protected]";
theReportName["551494"] = "North East";
theReportAreas["551620"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Northern_TheReport_FY25.pdf";
toEmailAddress["551620"] = "
[email protected]";
theReportName["551620"] = "Northern";
theReportAreas["551746"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/PortPhillip_TheReport_FY25.pdf";
toEmailAddress["551746"] = "
[email protected]";
theReportName["551746"] = "Port Phillip";
theReportAreas["551872"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Richmond_TheReport_FY25.pdf";
toEmailAddress["551872"] = "
[email protected]";
theReportName["551872"] = "Richmond & Surrounds";
theReportAreas["551998"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Stonnington_TheReport_FY25.pdf";
toEmailAddress["551998"] = "
[email protected]";
theReportName["551998"] = "Stonnington";
theReportAreas["552127"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/Whitehorse_TheReport_FY25.pdf";
toEmailAddress["552127"] = "
[email protected]";
theReportName["552127"] = "Whitehorse";
theReportAreas["552255"] = "https://dnvz0t4zlk55r.cloudfront.net/uploaded/the-report/YarraRanges_TheReport_FY25.pdf";
toEmailAddress["552255"] = "
[email protected]";
theReportName["552255"] = "Yarra Ranges";
$(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();
}
}
});
});
});