Make a calculation field with the label data and the data from the merge field. Your calculation would be something like
If(IsEmpty(YourMergeField);"";"Label : " & YourMergeField)
You can just add the if statement if your merge field is already a calculation. You would substitute your field name for YourMergeField in the above calculation.
You can use a conditional format expression to make the label text non visible. It can change the color to match the layout back ground or set the font size to more than 100 points in size. (you may need to go larger depending on the size of the text block.)
But this still requires the same space on your layout, You won't be able to "resize enclosing part" and remove the blank space occupied by this layout text.
To do that, you'd need to replace the layout text with a calculation field that returns the label text when the data field has data and that returns nothing when it is empty. Now you simply have one more field to slide up/resize on your layout.
Key facts about sliding layout objects:
- It's only visible in preview mode and when you print/save as PDF...
- Sliding fields will shrink but not expand.
- All layout objects below and in the same layout part as the slide/resize field need to also be set to slide up and resize.
- Objects in headers and footers will not slide.
- Portals will shrink/slide to fit the number of rows of records, but fields within the portal row will not shrink/slide.
- Fields will slide up only if Top alignment is specified for it and will slide left only if Left alignment is specified.
- Consistent side borders are difficult to achieve with sliding fields.
The Calculation Field worked out great