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.

scripting text to change color?

Featured Replies

Hello

I would like to find a way to script a bit of text to change color within a string. The 5th 6th and 7th characters of a string.

123456789 567 so I can make 567 ReD

is this possible

Thanks

Dave [color:"red"] [color:"red"]

I would make a field to be bold??? can it be done in script?

Anh Tran

Make 3 calculated fields:

cField1 = Left(inputField,4)

cField2 = Middle(inputField,5,3)

cField3 = Middle(inputField,8,64000)

Now make a merge text field:

<<cField1>><<cField2>><<cField3>>

Then format the colour for the "<<cField2>>" part as red (or bold or whatever you want). This is the general method I use when I need to have a single piece of text formatted differently within a larger block of text. So, the first calculated field holds the all the text preceding the highlighted text. The second calculated field holds the highlighted text, and the last field holds the trailing text. Then the merge field does the actual formatting automatically.

Thanks alot Vaughan ...

Anh Tran

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.