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.

How to the change color of copied text to the clipboard when there's a theme attached?

Featured Replies

Howdy, all, and season's greetings:

 

I'm stuck: In FMP v12.x Advanced, I'm trying to create a script where, upon clicking a field, its contents will be copied the clipboard so it can be pasted outside of the file into a web-based form or Word document; there's a theme in place in the FMP file where the fields' text color is white and I want it to be black when pasted into the form or document.

 

I tried the TextFormatRemove, TextStyleRemove, and TextColor script steps but still, the text remains white when pasted so I guess I'm coding the script incorrectly. That, and I want it to be a "universal" script so whichever field I click its contents will be color-processed accordingly. (I imagine the Get(ScriptParameter) function comes into play here.)

 

TIA for your help!

The immediate thing that comes to mind is that you would take the contents of the field and put in a variable.  Set it into a global text field, use the RemoveTextFormat function on that global field and then copy the contents of the global field to the clipboard

there's a theme in place in the FMP file where the fields' text color is white and I want it to be black when pasted

 

There is something missing here: a field's text color is not the text's color. If the text itself is unstyled (as it should be), then that's what should end up on the clipboard. Otherwise you have white text in the field, regardless of any settings at the layout level.

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.