Jump to content

Removing formatting when entering data


Recommended Posts

Posted

I've had a problem with formatting being entered into fields when I paste content. So if I have a field whose formatting is defined on the layout as Verdana 12 but I paste something that had other formatting like Times 24, the other formatting (Times 24) remains in the field.

After some searching, I found that if I set a field to a calculated value of

TextFormatRemove ( Self )

and uncheck the "Do not replace existing content of field (if any)" box, the formatting is removed when I exit the field and the formatting I defined for the field applies.

Is there any way to set this globally for the FM database or for the layout so I don't have to do this for each field? Thanks in advance.

Posted
1 hour ago, rcacciato said:

So there's no way to set this globally?

If by "this" you mean auto-entered correction of user entry, then no - I don't know of a way to set this for all fields at once.

Another option you could consider is a script triggered on record commit that loops among all fields on the layout (more precisely, all fields in the layout's tab order). But IMHO attacking the problem at its source would be best.

 

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.