<script> // Add this script to validate image uploads document.getElementById(”submit_property_form”).addEventListener(”submit”, function(event) { var uploadedImages = document.querySelectorAll(’#houzez_property_gallery_container .property-thumb’); var requiredCount = 5; // Change this to the required count // Show or hide the error message based on the count if (uploadedImages.length < requiredCount) { event.preventDefault(); // Prevent form submission document.querySelector(’.validate-errors-gal’).classList.remove(’houzez-hidden’); // Show error message } else { document.querySelector(’.validate-errors-gal’).classList.add(’houzez-hidden’); // Hide error message } }); </script>
Est. Monthly Repayment: RM 0 / mo
Total Downpayment: RM 0
Compare listings
Compare