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

Center combined fields for variable text width


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

Recommended Posts

Posted

How to put this most simply....hmm....

I have a in consecutive order right next to each other, a text object "CD," a field "A###" and a field "A/B." The "CD" and field "A###" are always full, but the last field "A/B" is full only when there are two CDs. My problem is with how to keep it centered on the layout with AND without the occasional "A/B" field. It is mandatory that this layout not be edited in anyway - all data entry is done on a separate page, so this must be an automatic occurrence. I've browsed calculations and looked it up in Help and tried a bunch of things but cannot nail-down the correct formula. Is this possible?

Thank you SO much for your help - it's been a lifesaver so far.

SC

Posted

Have you tried centering a calculation field?

MyNewCalcField = CD & " " & A#### & If(not IsEmpty(A/B; " " & A/???)

Posted

Yup - that worked ... I was just missing a ";" in my efforts for the most part. I ended up with

"CD" & " " & (label concert number) & " " & If(not IsEmpty(Multiple CD) ; (Multiple CD))

I HAD moved on to another question which was ... I wanted to use the same type of calculation but include my date field that is formatted to convert mm/dd/yyyy into day name, month and day, and year -- but within a calculation it limited it back to mm/dd/yyyy - so my question was "any way to format the date properly in a calculation field?" HOWEVER, to my great triumph, I figured it out and might as well post it so that anyone who'd want to know the same thing can find out here...

my date field is simple titled "label date"

Calculation is:

DayName(label date) & "," & " " & MonthName(label date) & " " & Day(label date) & "," & " " & Year(label date) & " " & (Label Event Time)

Thanks again --

SC

Posted

Just a note. You can combine consecutive text portions of calculations. "CD" & " " can be "CD ", and "," & " " can be ", ".

This topic is 7072 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.