Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Printing objects ONLY when fields contain data


This topic is 7075 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Here's my situation: I have a colon as a text object (not a field) between two text fields. If there is not text in the two fields on either side of the colon, I do not want the colon to print - is it possible to write a script or somehow make it so that the colon will not print if there is no text in a surrounding field? I'm new at this so I am still learning - but the sooner I can find out whether this is possible or not the better, which is why I'm jumping to a forum. Thanks for your help!

SC

Posted

Hi SC,

Since you want the colon to be conditional, it must be a calculation. Create a calculation (text) with:

If(

not IsEmpty( text1 ) and

not IsEmpty( text2 ) ;

":" )

Place this calculation between the fields instead. smile.gif

LaRetta

Posted

You can also use <<merge fields>> in your print layout. If they have no data in them, they shrink to nothing. They will also shrink to the size needed to display the field.

This topic is 7075 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.