Help with sub form please

Help with sub form please

Basically I have a field called Documents which has a list of check boxes, when the box is checked it will show a date created field and a upload field.
My problem occurs when I create a subform of my Documents form, when I run the application the subform will display all of the fields even though the code is set to hide.
How can I make the subform work as intended ?
Thanks! :)