All Collections
FAQs
What if I want to replace something in one place, but not everywhere? Or if I want to replace the same text with A in one place, and B in another?
What if I want to replace something in one place, but not everywhere? Or if I want to replace the same text with A in one place, and B in another?

Add context to differentiate between identical text occurring in various places, or even better, use meaningful placeholders when drafting.

Samuel Smolkin avatar
Written by Samuel Smolkin
Updated over a week ago

Depending on how your documents are drafted, you may need to replace the same piece of text with different values depending on where it appears in your documents. This often occurs when you use generic placeholders while drafting your documents. For instance, you may want to replace $[x] with $100 in one place and $50 in another. This can be achieved by adding context to the Find text in Find & Replace turnsheets or the column headings in Merge turnsheets, since placeholders in your documents meant to have different meanings are typically referred to in different contexts, as shown in the example below.

In general, it is best to avoid using generic placeholder when drafting documents, and use meaningful placeholders instead. For instance, the sentence in the example would have been better drafted like this: The Company shall distribute $[purchase price] to the shareholders less $[txn costs] in estimated costs. Using meaningful placeholders makes your drafts easier for clients to read, colleagues to reuse and you to edit automatically with O&D.

Example

Document:

The Company shall distribute $[x] to the shareholders less $[x] in estimated costs.

Instructions:

Find what: distribute $[x]
Replace with: distribute $100

Find what: less $[x]
Replace with: less $50

Result:

The Company shall distribute $100 to the shareholders less $50 in estimated costs.
Did this answer your question?