Is there any way to disable ShipTo checkboxes on C...
# administration
n
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
Are you referring to some field (checkbox) on a customer record or are you referring to the Ship To fields on a transaction?
a
Do you mean the default shipping address checkbox on the addresses?
n
Sorry. Yes, the checkbox.
a
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
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'; } } } }
Use that on the client script for customer records. Just change it for the checkbox column you want.
n
Thanks @Eric B!
👍 1