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 Calculation

Featured Replies

Hello,

I am looking for help with what I thought would be a fairly simple text formatting calculation.

I have a text field (originalGenus) that typically has italics applied to it.

I have now come across some cases where I need the italics to be removed from certain characters within the field.

For example, typically the field is populated with the text "Genus". In some cases, it contains "Genus (Subgenus)". Now, I need both, genus and subgenus to be italicized, but not the brackets.

This field is subsequently used in other calculation fields to format a complicated output used for a taxonomic catalogue.

I was hoping this would work, but it does not:

Substitute (

TextStyleAdd (originalGenus;Italic) ;

"(" ;

TextStyleRemove ("(";Italic)

)

Am I missing a simple answer? Any help would be much appreciated!

Edited by Guest
ID Field Type

I don't have v8 on this machine, but I'm pretty sure you can modify this file from NightWing Link to do what you want.

HTH

Lee

Try:

Substitute (

TextStyleAdd ( originalGenus ; Italic ) ;

"(" ;

TextStyleAdd ( "(" ; Plain )

)

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.