Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

User enters text within a paragraph

Avatar

Level 9

Is there a way to create a paragraph where the form user has to enter text within the paragraph itself and the other text following will move/adjust and wrap as needed?

Example of what I mean:

The undersigned company, [ENTER YOUR COMPANY NAME HERE], organized under the laws of the State of [ENTER THE STATE HERE]., and hereinafter referred to as [ENTER NAME HERE] located at [ENTER STREET ADDRESS HERE] etc...

I would like to highlight the areas the customer needs to enter their text into also. I used a textField with no caption but could not figure out how to highlight the needed areas and I would prefer the only areas editable are where the user enters their information.

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 4

I do not know if the is the best way, but it works and is an effective method. I have used this technique to develop certification templates for years.

Use the concat function and FormCalc to create the desired text. I set up a form with two pages. On the first page, I capture the "insert" information in various text boxes. I se the page's Object Property for presence to "Visible - Screen Only" so that when the end user prints, he/she only gets the certification page.

Ex1.jpg

On page two, insert a text box and in in the script editor, select calculate and add a statement that looks something like this:

concat("The undersigned company, ",Company," organized under the laws of the State of ",State.........)  It will produce the following (you may wish to remover the border for the textbox):

Ex2.jpg

You will need to use a comma to separate items in the concat list, and your standardized text must be in "  ". You need to play with it a bit to get the word spacing correct. This example can be found here:

https://www.dropbox.com/s/iah808igek6bsq0/Concat%20Example.pdf?dl=0

Good luck.

View solution in original post

4 Replies

Avatar

Correct answer by
Level 4

I do not know if the is the best way, but it works and is an effective method. I have used this technique to develop certification templates for years.

Use the concat function and FormCalc to create the desired text. I set up a form with two pages. On the first page, I capture the "insert" information in various text boxes. I se the page's Object Property for presence to "Visible - Screen Only" so that when the end user prints, he/she only gets the certification page.

Ex1.jpg

On page two, insert a text box and in in the script editor, select calculate and add a statement that looks something like this:

concat("The undersigned company, ",Company," organized under the laws of the State of ",State.........)  It will produce the following (you may wish to remover the border for the textbox):

Ex2.jpg

You will need to use a comma to separate items in the concat list, and your standardized text must be in "  ". You need to play with it a bit to get the word spacing correct. This example can be found here:

https://www.dropbox.com/s/iah808igek6bsq0/Concat%20Example.pdf?dl=0

Good luck.

Avatar

Level 10

Hi there,

the best tool I've found for this kind of request can be found on the following link :

Editable Floating Fields

There's a few things that doesn't work like inserting a carriage return within a floating field but the snippet code works just fine for most of the times. Its really helpful for free text entry within a paragraph...

Hope this help!

Avatar

Level 9

Thank you so much! I will look into that link.