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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...