September 8, 200916 yr Newbies Haven't been able to figure out if this is possible - if there is more text than fits within the boundaries of the text box on screen, I'd like to change the background color or give the user some other clue to click on the field and read everything. Edited September 8, 200916 yr by Guest
September 8, 200916 yr Sorry - didn't realise you wanted conditional formatting. Set up the field with conditional formatting so that above a certain number of words (the number that fit in your field on the layout) the text changes colour or style Edited September 8, 200916 yr by Guest
September 8, 200916 yr Conditional Formatting requires that you exit the field for it to take place. Since you have 10 Advance, use Script Triggers and a Script. Use a MonoType Font such as Monaco, and count the number of characters that will fit within your Text Box, I used [color:blue]12 for my example Your script would look like this; Set Field [ YourField; Case (Length ( YourField ) ≥ [color:blue]12; TextColor ( YourField ; RGB ( 250 ; 0 ; 0 ) ); TextColor ( YourField ; RGB ( 0 ; 0 ; 0 ) )) ] and Attach it to the Script Trigger [color:blue]OnObjectModify Edited September 8, 200916 yr by Guest
September 8, 200916 yr Even with a monospaced font, Length() does not provide a reliable indication - you could have a very short text broken into many lines. There's a demo posted by Daniele somewhere, that shows a question mark peeking behind a field when the text exceeds what is shown - but I believe showing the field contents in a web viewer might be a better solution, if no editing is required.
September 8, 200916 yr Hi this is a way to go ( with 10 ). N.B.: Does not work with dragged text. hidden_text.zip
September 8, 200916 yr Right - I should have remembered this one too: http://fmforums.com/forum/showtopic.php?tid/188854/post/302857/#302857
September 9, 200916 yr Thanks, Lee. The script isn't perfect ( do not knows WHERE to go, to which position of the field ) EDIT: fixed hidden_text.zip
Create an account or sign in to comment