if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_142")) { box3_142 = (box10_68.to_f()).fixedString(0); } SFForms.StorageManager.setValue(formInstanceId, 'box3_142', box3_142); // Schedule C if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_143")) { box3_143 = (box10_97.to_f()).fixedString(0); } SFForms.StorageManager.setValue(formInstanceId, 'box3_143', box3_143); // Schedule C-1 if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_144")) { box3_144 = (box11_15.to_f()).fixedString(0); } SFForms.StorageManager.setValue(formInstanceId, 'box3_144', box3_144); if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_116")) { box3_116 = (box11_20.to_f()).fixedString(0); } SFForms.StorageManager.setValue(formInstanceId, 'box3_116', box3_116); // Schedule H if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_117")) { box3_117 = (box13_46.to_f()).fixedString(0); } SFForms.StorageManager.setValue(formInstanceId, 'box3_117', box3_117); // ------------------------------------------------------------------------------ // Below is the blanked version using the new blanking: // ------------------------------------------------------------------------------ doBlank = ((box10_68 + box10_97 + box11_15 + box11_20 + box13_46).toString().trim().length == 0); if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_142")) { box3_142 = (doBlank ? '' : (box10_68.to_f()).fixedString(0)); } // Schedule C if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_143")) { box3_143 = (doBlank ? '' : (box10_97.to_f()).fixedString(0)); } // Schedule C-1 if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_144")) { box3_144 = (doBlank ? '' : (box11_15.to_f()).fixedString(0)); } if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_116")) { box3_116 = (doBlank ? '' : (box11_20.to_f()).fixedString(0)); } // Schedule H if (!SFForms.StorageManager.hasOverrides(formInstanceId, "box3_117")) { box3_117 = (doBlank ? '' : (box13_46.to_f()).fixedString(0)); } SFForms.StorageManager.setValue(formInstanceId, 'box3_142', box3_142); SFForms.StorageManager.setValue(formInstanceId, 'box3_143', box3_143); SFForms.StorageManager.setValue(formInstanceId, 'box3_144', box3_144); SFForms.StorageManager.setValue(formInstanceId, 'box3_116', box3_116); SFForms.StorageManager.setValue(formInstanceId, 'box3_117', box3_117);