August 14, 200718 yr Newbies I have a simple script step Insert Current Date [] Is there a way to make that date bold?
August 14, 200718 yr you could try Insert Calculated Result it would look something like this. Insert Calculated Result [select; Table:Field; TextStyleAdd (Get ( CurrentDate ) ;Bold )]
August 14, 200718 yr 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, 200718 yr by Guest
August 14, 200718 yr I thought about that too and wanted to suggest a calculation. However that wasn't the question.
August 14, 200718 yr 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.
August 14, 200718 yr 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]
August 14, 200718 yr 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