Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

How to insert custom text inside a text object?.


Level 3

Hi, I'm trying to do something like this:

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, <DYNAMIC TEXT> essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

I need a text object (not sure if text, text field, or what type exactly is the correct one) and through a variable I need to modify the <DYNAMIC TEXT> part of the text, if I read correctly this is done using scripting.

What I didn't find was a way to alter only the highlighted text, and not everything.

This is to make a sort of contract, where some fields are subject to be modified, like names, dates, amounts, etc.

Thanks in advance!.

0 Replies