Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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


This topic is 4353 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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

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

This topic is 4353 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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