Is there any way to disable ShipTo checkboxes on Customers? Couldnt find a system option one and cant find the field via workflow. Long story short, user error caused a big issue and now Leadership wants it gone as we dont ship anything to customers in our business.
e
Eric B
02/09/2022, 10:55 PM
Are you referring to some field (checkbox) on a customer record or are you referring to the Ship To fields on a transaction?
a
AI1
02/10/2022, 12:54 AM
Do you mean the default shipping address checkbox on the addresses?
n
NS Admin
02/10/2022, 1:05 PM
Sorry. Yes, the checkbox.
a
AI1
02/10/2022, 5:43 PM
I haven't been able to do anything with those either
Could you make a workflow to clear out the ship to address on all Orders instead?
e
Eric B
02/10/2022, 7:13 PM
function uncheckResidentialCheckBoxes() {
var table = document.getElementById('addressbook_splits');
var numRows = table.rows.length;
console.log(numRows);
for (var i = 0; i < numRows; i++) {
var dataRow = table.rows[i + 1];
if (dataRow != undefined) {
var dataCell = dataRow.cells;
if (dataCell[3] != undefined && dataCell[3].innerText != 'Yes') {
console.log(dataCell[3].innerText);
dataCell[3].innerText = 'No';
}
}
}
}
Eric B
02/10/2022, 7:14 PM
Use that on the client script for customer records. Just change it for the checkbox column you want.