document.addEventListener('DOMContentLoaded', function () {
const totalField = document.getElementById('fieldname12'); // Change to your total field ID
if (!totalField) return;
// Listen for calculation event fired by CFF
document.addEventListener('cp_calculated', function () {
totalField.style.display = 'block';
});
});