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

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

Recommended Posts

Posted

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

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

Posted (edited)

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
  • Newbies
Posted

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.

Posted

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]

Posted

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]

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