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

Changing text field, font, colour etc to conform to layout


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

Recommended Posts

Posted

Hello happy FM hackers

I have a little problem which that I have an address book that is in part culled from the net. When I copy & paste the info into the text field it keeps the web formatting. Does anyone know of a script or how I can make the text field formatting conform to the layout parameters that I initially designed?

Posted (edited)

Hi

You can do it with "paste Special" or with a script:

copy[select;InField]

paste[select;No style;OutField]

or even with an "auto-enter calculation replaces existing value" and calc:

SerialIncrement ( InField ; "" )

Edited by Guest
Posted

or you can select paste special from edit menu which asks pasting stye (formatted or plain text ... etc)

Posted

Two more possibilities:

1. Paste holding the Option key down (or Windows equivelant.)

2. Add this auto-entered calc option to the field to always remove any formatting:

Evaluate ( Quote ( field ) )

Posted

I see Ender is offline (useful function that). He's given you the formula and method, but perhaps more explanation is needed. Replace is a script step, also an operation in the Records menu. You should read about it in the Help first. Because it is both powerful and dangerous.

It works on the currently active field (where the cursor is), in the current found set. You have to do each relevant field separately.

Use the formula he posted as he said, as an auto-enter by calculation option for the field, with the "Do not replace value" checkbox OFF (in Define Fields). Then simply Replace in the field, by calculation, with itself.

This fixes the text you've got, and ensures that any subsequent pasted text will get formatting stripped upon tabbing out.

This topic is 6996 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.