Nestor Posted June 30, 2010 Share 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 Link to comment Share on other sites More sharing options...
Vaughan Posted June 30, 2010 Share 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 Link to comment Share on other sites More sharing options...
Nestor Posted June 30, 2010 Author Share Posted June 30, 2010 THANKS.. I used the pattercount and it worked perfect. THanks again. Link to comment Share on other sites More sharing options...
Raybaudi Posted June 30, 2010 Share Posted June 30, 2010 This is tricky in FMP... ... with triggers can be made. :) FieldWarning.zip Link to comment Share on other sites More sharing options...
Vaughan Posted July 1, 2010 Share Posted July 1, 2010 Daniele, the tricky part is working out whether the text fits the space. Link to comment Share on other sites More sharing options...
Raybaudi Posted July 1, 2010 Share Posted July 1, 2010 The example shows exactly how to do that. Link to comment Share on other sites More sharing options...
hbrendel Posted July 1, 2010 Share Posted July 1, 2010 Nice! Link to comment Share on other sites More sharing options...
Vaughan Posted July 1, 2010 Share Posted July 1, 2010 Like I said Daniele, it's tricky... and you've done it. Very impressive! Link to comment Share on other sites More sharing options...
TheTominator Posted July 1, 2010 Share Posted July 1, 2010 Beautiful solution. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now