Jump to content

Shrink text in a variable, then truncate if necessary


Recommended Posts

Is there a way to both shrink text to fit AND cut off text? I have a line including 2 variables for Doctor's Name and Department Name and rules for each one that give the user the ability to choose whether to show a line or to type in the name.

My trouble is coming in when the user chooses a blank line for the doctor, but types in an extremely long department name. This makes the line for the doctor's name shorter and shorter, which is a problem since the doctor's name will be hand-written into that space. I need a way to say "Shrink the department name to a minimum of 7pt, but only allow the variable to be a maximum of 2" long, if it's longer than that, start cutting off characters."

It would be helpful to be able to specify a width, rather than number of characters because depending on whether the text is shrunk or not it could be a different number of characters.

 

I have attached the files I'm working with, and illustrations of what I'm looking for.

ShouldNotBe.jpg.ce13c4619cca48f163211643523eef5f.jpg

ac-demo.zip

ShouldBe.jpg.a13a1e6ae9824d4511731c4299520c0f.jpg

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...