tmp = entity.name.trim(); if (!tmp.trim().isEmpty()) { SFForms.StorageManager.setValue(formInstanceId, "box1", tmp); } tmp = entity.address.trim(); if (!tmp.trim().isEmpty()) { SFForms.StorageManager.setValue(formInstanceId, "box2", tmp); } tmp = entity.address2.trim(); if (!tmp.trim().isEmpty()) { SFForms.StorageManager.setValue(formInstanceId, "box3", tmp); } tmp = entity.city.trim(); if (!tmp.trim().isEmpty()) { SFForms.StorageManager.setValue(formInstanceId, "box4", tmp); } tmp = entity.state.trim(); if (!tmp.trim().isEmpty()) { SFForms.StorageManager.setValue(formInstanceId, "box5", tmp); } tmp = entity.zip.trim(); if (!tmp.trim().isEmpty()) { SFForms.StorageManager.setValue(formInstanceId, "box6", tmp); }