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.

Text Formatting Interface Examples or Tutorials?

Featured Replies

Hi all. I am about to start building a user interface to provide text formatting functionality whereby users can format text using buttons I have provided such as Bold, Italic, and so on. Basically buttons for all the text formatting functions FileMaker provides. I specifically need the ability for users to be able to highlight text within a block of text in a text field and add formatting to the highlighted text. Can anyone recommend a source with some examples or video tutorials on how to accomplish this.

Thanks in advance :)

  • Author

Thank you comment :)

  • Author

Is there any way to detect if formatting is already applied? For instance, if highlighted text is already bold I would like to be able to unbold the text? Trying to approximate known text editing behavior as much as possible.

 

  • Author

Thanks Comment. I was able to use GtAsCSS to detect styling. I'm experiencing a strange behavior now though. When I apply a text style using

TextStyleAdd ( Middle ( Get ( ActiveFieldContents ) ; Get ( ActiveSelectionStart ) ; Get ( ActiveSelectionSize ) ) ; Bold )

the highlighted text becomes Bold as desired. Then with the same newly bold text highlighted and using

TextStyleRemove ( Middle ( Get ( ActiveFieldContents ) ; Get ( ActiveSelectionStart ) ; Get ( ActiveSelectionSize ) ) ; Bold )

The Bold styling is not removed. However if I select the same text and include one or more preceding unbolded characters it then removes the Bold style.

Yes, I remember this has come up before too. Unfortunately, I cannot find the threads (I think there were two of those) and I don't remember if a satisfactory solution was ever found. 

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.