Newbies SunshineHill Posted August 14, 2007 Newbies Posted August 14, 2007 I have a simple script step Insert Current Date [] Is there a way to make that date bold?
grumbachr Posted August 14, 2007 Posted August 14, 2007 you could try Insert Calculated Result it would look something like this. Insert Calculated Result [select; Table:Field; TextStyleAdd (Get ( CurrentDate ) ;Bold )]
LaRetta Posted August 14, 2007 Posted August 14, 2007 (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. 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 August 14, 2007 by Guest
grumbachr Posted August 14, 2007 Posted August 14, 2007 I thought about that too and wanted to suggest a calculation. However that wasn't the question.
Newbies SunshineHill Posted August 14, 2007 Author Newbies Posted August 14, 2007 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.
bcooney Posted August 14, 2007 Posted August 14, 2007 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) Set Field [Field; TextStyleAdd (Get ( CurrentDate ) ;Bold ) & & Field]
grumbachr Posted August 14, 2007 Posted August 14, 2007 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]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now