Nestor Posted June 30, 2010 Posted June 30, 2010 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
Vaughan Posted June 30, 2010 Posted June 30, 2010 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
Nestor Posted June 30, 2010 Author Posted June 30, 2010 THANKS.. I used the pattercount and it worked perfect. THanks again.
Raybaudi Posted June 30, 2010 Posted June 30, 2010 This is tricky in FMP... ... with triggers can be made. :) FieldWarning.zip
Vaughan Posted July 1, 2010 Posted July 1, 2010 Daniele, the tricky part is working out whether the text fits the space.
Vaughan Posted July 1, 2010 Posted July 1, 2010 Like I said Daniele, it's tricky... and you've done it. Very impressive!
Recommended Posts
This topic is 5350 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 accountSign in
Already have an account? Sign in here.
Sign In Now