Annoyingly, newRecord.getFields() only gets the fields that have a value in beforeLoad. Looping them to set all fields to INLINE will naturally not include fields that doesn't have a value.
Instead, I ran a query to get all the custom fields from the table CustomField.
Is there a better way to get all fields in the form in beforeLoad?