Jump to content

Hiding Overlapping Boxes or Fields


MBee

Recommended Posts

I need a code that will hide a box when another box is full.

 

My file is set up so the there is a graphic image box (BioImageCopy) positioned over a text box (BioTextCopy). Each contains a field appropriate to what it contains "BioImage" for the graphic and "BioCopy" for the text. There is always a graphic in the field "BioImage", so presently it is always seen.

 

When "BioCopy" text field has something in it, "BioImage" will not be seen or print.

 

Thanks for you help.

Link to comment
Share on other sites

The code is hiding the image when the text is empty and showing the image when the text is full. Did I goof it up when I put it into the document?

 

I need it to hide the image when the text field is full.

Link to comment
Share on other sites

The code is hiding the image when the text is empty and showing the image when the text is full. Did I goof it up when I put it into the document?

 

I need it to hide the image when the text field is full.

Ah, sorry, I mixed up my Boolean logic. This should work:

FindGraphicFrame("BioImageCopy").suppress = !!Field("BioCopy");

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...