Jump to content

scripting text to change color?


This topic is 7568 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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.

Link to comment
Share on other sites

This topic is 7568 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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