Find-replace in all fields on a form

I am looking for a solution, which replaces all (text) values in a document, in all fields or in a couple of fields.

For example in an email. Somewhere in the subject field and somewhere in the Body is the text ‘Amsterdam’. I would like all the Amsterdams changed to ‘Paris’

Every suggestion will be appreciated!!

Thanks.

Subject: Find-replace in all fields on a form

Hi,

for non richtext-fields take a look at “@replacesubstring”. Maybee in your case you can use it in the input translation formula, otherwise create a button and cycle through all fields.

With formated text in Richtext-Fields it might be a little more complicated. For that you should use the NotesRichTextRange class and the FindAndReplace method.

Manfred

Subject: See here (WAS: Find-replace in all fields on a form)

You may find some simple code works for you though, if your fields aren’t rich text-based.