You can now join the AMIEU securely online. Please choose the correct button below for Direct Debit payments or for Credit Card payments, and fill in the details on the form.
document.addEventListener('DOMContentLoaded', function() {
// Adjust the selector if you have multiple forms
const form = document.querySelector('.elementor-form');
if (!form) return; // Stop if no form found
// Get the BSB field by Field ID
const bsbField = form.querySelector('#bsb'); // #bsb = Field ID from Step 1
if (!bsbField) return;
form.addEventListener('submit', function(e) {
const bsbValue = bsbField.value.trim();
const regex = /^\d{3}-\d{3}$/; // Matches 000-000 format
if (!regex.test(bsbValue)) {
alert('Please enter a valid BSB in the format 000-000');
bsbField.focus();
e.preventDefault(); // Stop form submission
}
});
});