Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Text Formatting Options

Featured Replies

The following 2 script steps work:

profession= Case ( PatternCount ( Profession;"¶" ) > 0; TextStyleAdd (Profession ; Bold );

TextStyleRemove (Profession ; Bold ) )

profession= Case ( PatternCount ( Profession;"¶" ) > 0; TextColor (Profession; RGB( 0 ; 0 ;255));

TextColor(Profession; RGB (187 ; 0 ; 0 )))

However, when I try to combine TextStyleAdd with TextColor into a calculation field, it doesn't work. It changes the text to Bold, but it doesn't color it. I've tried various combinations, including 2 case statements, '&' and '+' to no avail. I don't get a syntax error, it just doesn't do it.

Does anybody know what the correct syntax is to apply Bold and Color, and the default side to be 'no Bold and black'?

Steve

Edited by Guest

Is this for auto-entry into the same field?

  • Author

no, its into a calc field (type of text).

Steve

Then you don't need to remove the bold style when the condition is false. The syntax can be:

Case ( test ;

TextColor ( TextStyleAdd ( text ; Bold ) ; RGB ( 155 ; 0 ; 0 ) ) ;

TextColor ( text ; RGB ( 0 ; 0 ; 180 ) )

)

Does anybody know what the correct syntax is to apply Bold and Color, and the default side to be 'no Bold and black'?

If "profession" field is always no bold and black:

Case (

PatternCount ( profession; ¶ ) > 0; TextStyleAdd (TextColor (profession; RGB( 0 ; 0 ;255)) ; Bold );

profession

)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.