December 23, 201213 yr 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!
December 23, 201213 yr 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
December 23, 201213 yr 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