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.

Bold & Red Please!!

Featured Replies

Hi

I am trying to add a bold button and a red button above a text box. Just want to highlight text and then bold it or change colour to red. But only the highlighted sections.

I have followed links, and tried stuff. But just can't do it! This is becomming detrimental to my health!

If anyone has done this already could you possibly post the actual scripts?

Would be very much appreciated.

Trevor

Set Field[ yourField ;

Let( x = yourField ;

Left( x ; Get(ActiveSelectionStart) - 1 ) &

TextStyleAdd( Middle( x ; Get(ActiveSelectionStart) ; Get(ActiveSelectionSize) ) ; Bold ) &

Right( x ; Length(x) - (Get ( ActiveSelectionStart) + Get(ActiveSelectionSize) -1 ) )

)

]

Change the bolded bits to:

TextColor( ; RGB( 200 ; 0 ; 0 ) )

Edited by Guest

  • Author

Hi

Thanks for this. Can't get it to work though. I have selected the "get field" command from the left and then typed the rest in in the specify calculation option. Is that right?

Thanks

Trevor

  • Author

Sorry, I meant "set filed" not "get field".

... Did you specify yourField in the Set Field command?

  • Author

Hi

Thanks for your help, problem solved.

Driving was successful but a tad impatient!

Lol. I'm sitting here thinking, what is this guy on about. Then i remembered, hehe. Well no, it just usually goes in circles and you go, "it doesn't work" and then i go "it does" and then you go "i tried it, it doesn't work" then i go "yes it does, here's a sample" : So I just took a short cut hehehe.

Sigh, funny to me anyway.

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.