![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a text field whose font preference is set to Arial, input method is set to "synchronize with field's font." If someone types in the field the text is Arial. If someone drags text into the field it becomes Arial. But if someone pastes text into the field it retains its original font, which is bad for complicated reasons. Is there any way to force pasted text to change to the field's preferred font? |
#3
| |||
| |||
|
|
On 2007-07-02 13:00:56 -0500, Bill Steele <ws21 (AT) cornell (DOT) edu> said: I have a text field whose font preference is set to Arial, input method is set to "synchronize with field's font." If someone types in the field the text is Arial. If someone drags text into the field it becomes Arial. But if someone pastes text into the field it retains its original font, which is bad for complicated reasons. Is there any way to force pasted text to change to the field's preferred font? What version are you using? |
#4
| |||
| |||
|
|
I have a text field whose font preference is set to Arial, input method is set to "synchronize with field's font." If someone types in the field the text is Arial. If someone drags text into the field it becomes Arial. But if someone pastes text into the field it retains its original font, which is bad for complicated reasons. Is there any way to force pasted text to change to the field's preferred font? |
#5
| |||
| |||
|
|
I have a text field whose font preference is set to Arial, input method is set to "synchronize with field's font." If someone types in the field the text is Arial. If someone drags text into the field it becomes Arial. But if someone pastes text into the field it retains its original font, which is bad for complicated reasons. Is there any way to force pasted text to change to the field's preferred font? |
#6
| |||
| |||
|
|
On 2 Jul., 20:00, Bill Steele <w... (AT) cornell (DOT) edu> wrote: I have a text field whose font preference is set to Arial, input method is set to "synchronize with field's font." If someone types in the field the text is Arial. If someone drags text into the field it becomes Arial. But if someone pastes text into the field it retains its original font, which is bad for complicated reasons. Is there any way to force pasted text to change to the field's preferred font? There is a way to force a phone number into a certain format, e.g. ###-####-####. I believe the same technique can be used here. Add an auto-enter calculation to your input field. Set the calculationto something like this: If(Length(input_field) >0 ; TextStyleRemove(input_field;AllStyles); input_field) You should also uncheck the box "Do not replace existing value offield (if any)". Ths should do the trick. If you want to make really nice, you can make it into a custom function with a number of variables, in order to better control which styles and formats you want to zap and which to preserve. Check outthe various text formatting possibilities in the help menu. Remember to share your custom function with the rest of us atbriandunning.com - maybe there's already a CF for you there. |
#7
| |||
| |||
|
|
Add an auto-enter calculation to your input field. Set the calculation to something like this: If(Length(input_field) >0 ; TextStyleRemove(input_field; AllStyles); input_field) |
#8
| |||
| |||
|
|
In article <1184010630.087566.159890 (AT) d55g2000hsg (DOT) googlegroups.com>, biberkopf <jespersoholm (AT) gmail (DOT) com> wrote: Add an auto-enter calculation to your input field. Set the calculation to something like this: If(Length(input_field) >0 ; TextStyleRemove(input_field; AllStyles); input_field) Would that also remove any internal formatting, e.g., bold and italic? |
![]() |
| Thread Tools | |
| Display Modes | |
| |