You have to write an expression in the hidden property of the textboxes and use the globals.pagenumber to decide when to set hidden to true/false. Or put the textboxes in a rectangle and set the expression on the hidden property of the rectangle.
However, even when you hide all textboxes on a header, the header will still display, but then it will be blank, but it still consumes space…