Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am trying to set some text in a text field to bold by using a script.

I have to concatenate many fields into a huge text field and I whish to make parts of it bold. The script goes something like that:

Set BigTextField to ("Name Number" & "CR"

Loop

Set BigTextField to (BigTextField & "CR" & Name & " " & Number)

Go to next record (exit after last)

End Loop

This would create a table like ???

Name Number

Mike 45

July 76

etc...

I whish to make the column header in bold like so :

Name Number

Mike 45

July 76

etc...

Any ideas on how to achiev this ?

Posted

Sadly, there is no provision in FMP for specifying/applying formatting selectively within a field as a result of a calculation.

In the case you describe, there may be a way to achieve a similar effect, however. What you could consider is placing the bold heard text into a separate field 'BigBoldTextField' and then displaying the two fields on your layouts as merge text, with the appropriate formatting applied to the relevant merge flags.

The resulting layout text would look like:

<<BigBoldTextField>>

<<BigTextField>>

When viewed in Browse Mode, however, the result will be in the format you require.

Posted

Unfortunately the whole text has to be contained in one field...

I can change text to bold within a text field (in browse mode) and it will keep the format. It seems weird that I can achieve this manually but not automatically.

Thanks for the reply.

This topic is 8090 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.