Jump to content
Server Maintenance This Week. ×

Field warning


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

Recommended Posts

Hi,

I have a field (jepg #1) that only shows the first 5 lines, and 90% of the time that's plenty of room to users to explain what they need, but there are sometimes that users will use 10 lines.

Currently the only way to see the lines is to click on the field to extend it. (see Jpeg #2)

I'm trying to see if there's a way to use the conditional formatting to flag the end user that the field has extra lines and he has to click on the field to extend. any ideas how i can do this or if its even duable.

Thanks

FM_Example_1.gif

FM_Example_2.gif

Link to comment
Share on other sites

This is tricky in FMP because there is no "line count" function, and counting the number of characters does not help if there carriage returns in the text.

So the difficult part is recognising when there is "too much text" in the field.

The expression for the conditional formatting would be something along the like of counting the number of characters and the number of carriage returns:

Length( self ) > X or Patterncount( self ; "¶" ) > Y

Link to comment
Share on other sites

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