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

Script for text formatting

Featured Replies

I have a script that adds the user name, date etc. into a text field called "CS Notes" the user then carrys on typing what they have to say about the customer. I would like to set the script to use a certain colour for the text entered by the script and then by the user. Is this possible???

I have read about a calculation changing the font style but not through a script like this.

Thanks guys... my 1st post

oh and thanks to any girls out there too.

... in advance

Mike smile.gif

Set Field [text1; TextColor( "blah"; RGB( 0; 255; 255 ) ) & TextColor( " "; RGB( 255; 0; 0 ) )] will set text1 with a blue blah, followed by a 'red' space. However, since spaces are not colored, it will not look any different. Text added by users after the space will be formatted in red, as long as they click after the space before typing. You may want to make it easier and have the user first enter the details in a separate field, then concatenate the data using different TextColors.

  • Author

thanks I will give it a go

  • Author

Set Field [text1; TextColor( "blah"; RGB( 0; 255; 255 ) ) & TextColor( " "; RGB( 255; 0; 0 ) )] will set text1 with a blue blah, followed by a 'red' space. However, since spaces are not colored, it will not look any different. Text added by users after the space will be formatted in red, as long as they click after the space before typing. You may want to make it easier and have the user first enter the details in a separate field, then concatenate the data using different TextColors.

It works EXCEPT The main problem is it wipes any previous text in the field.

Any ideas?

  • Author

It's ok I created an in between Scratch field and all is working very well now. Thanks big time

Mike smile.gif

Don't know if this is appropriate Mike but when I saw your post I almost sh _ _! It's exactly what I needed to do and everyone helped Me. Just yesterday. I hope I do this right. The link is: http://www.fmforums.com/threads/showflat...true#Post123387

Just to give you more ideas, of course. I'm going to try this Queue one also, thank you Queue. Did you know you can use auto entry on that field so you maybe don't need a script? On this link I gave you, the last attachment shows what I ended up with but now boss wants to change it again. crazy.gif

Is server the same as Developer 7? I have Custom Functions for colors that are very cool. Helping someone is fun. laugh.gif

Create an account or sign in to comment

Important Information

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

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.