function openNewCustomerForm() {
// Create a modal overlay
let modalOverlay = document.createElement('div');
modalOverlay.className = 'modal-overlay';
document.body.appendChild(modalOverlay);
// Create a modal container
let modalContainer = document.createElement('div');
modalContainer.className = 'modal-container';
document.body.appendChild(modalContainer);
// Create an iframe inside the modal container
let iframe = document.createElement('iframe');
iframe.src = 'https://7177173-sb3.app.netsuite.com/app/common/entity/custjob.nl?target=main:entity&label=Customer';
modalContainer.appendChild(iframe);
// New edits to hide cancel button
iframe.onload = function () {
let iframeDocument = iframe.contentDocument;
// Hide the cancel button
let cancelButton = iframeDocument.getElementById('tbl_close');
if (cancelButton) {
cancelButton.style.display = 'none';
}
// Hide the secondarycancel button
let secondaryCancelButton = iframeDocument.getElementById('tbl_secondaryclose');
if (secondaryCancelButton) {
secondaryCancelButton.style.display = 'none';
}
};