Skip 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.

make date bold in script step

Featured Replies

  • Newbies

I have a simple script step

Insert Current Date []

Is there a way to make that date bold?

you could try Insert Calculated Result it would look something like this.

Insert Calculated Result [select; Table:Field; TextStyleAdd (Get ( CurrentDate ) ;Bold )]

But why bold the date if it is the current date - in a STANDARD date field via script? Because tomorrow, it won't be the current date any longer ... and the bold will still be there and need to be removed.

... just something to consider. :wink2:

UPDATE: Also, it is best to use Set Field[]. Insert must be on the current layout; Set Field[] has no such limitations. Set Field[] is the preferred choice always ...

Edited by Guest

I thought about that too and wanted to suggest a calculation. However that wasn't the question.

  • Author
  • Newbies

But it's not a standard date field, it's a text box with ongoing and consecutive dated notes. I would simply like the date to automatically show up as bold with the unbolded text following.

You might consider having a table for these notes rather than putting them all in one big text field. They can be viewed in a portal on their parent layout.

But, if not, you'll need to append (either before the current content or after):B

Set Field [Field; TextStyleAdd (Get ( CurrentDate ) ;Bold ) & & Field]

Here is something I've used to add notes about a contact where the notes didn't need to be in a separate table/record.

Step One:Set Selection [Table::Field; Start Position: 1]

Step Two: Insert Calculated Result ["¶" & TextStyleAdd (

DayName ( Get ( CurrentDate ) ) &", " &

MonthName ( Get ( CurrentDate ) ) & " " &

Day ( Get ( CurrentDate ) ) & ", " &

Year ( Get ( CurrentDate ) ) & " - " &

Get ( CurrentTime ) & " ¶"

; Bold ) & "¶" & "------------------------------------"]

Step Three:Set Selection [Table::Field; Start Position: Get(ActiveSelectionStart) - 37]

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.