    }

      function saveInbound() {
        const saveBtn = document.getElementById("saveButton");
        saveBtn.disabled = true;
        saveBtn.textContent = "Saving...";
        const iframe = document.getElementById('inboundFormFrame');
        if (iframe && iframe.contentWindow && typeof iframe.contentWindow.submitInboundForm === 'function') {
          iframe.contentWindow.submitInboundForm();
        } else {
          alert('Form not ready.');
          saveBtn.disabled = false;
    