Dynamic Text Component | Community
Skip to main content
January 27, 2016
Solved

Dynamic Text Component

  • January 27, 2016
  • 2 replies
  • 1626 views

Hi All, I'm looking for an AEM 6.1 Forms component to simply display a dynamic text-section. Consider a normal Static Text Component, but additionally I would like to display value from other components..

Example: I have a simple contact form with firstname, lastname and email as text-boxes. After submitting the form I want to forward to a kind of "ThankYou" - Page. Within this page I will display a text with embedded dynamic text, like "We will sent you an email to [email]" where email is one of the text boxes of the contact form.

 

Thanks a lot

r

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Amit_Kumar

First if you want to store that data in the JCR then you can use get the property values from the JCR second if you are using that data to trigger email or something in that case use a servlet which will be responsible for doing your stuff and call that servlet from Ajax and on success of that call show the hidden Div with your information(this will be available in current JavaScript context) in that div or so.

 

Hope this helps you.

2 replies

smacdonald2008
New Participant
January 28, 2016

Use AJAX in your component. When the return value of the AJAX call is received - update an HTML element with the message you want to display. 

Amit_Kumar
Amit_KumarAccepted solution
New Participant
January 28, 2016

First if you want to store that data in the JCR then you can use get the property values from the JCR second if you are using that data to trigger email or something in that case use a servlet which will be responsible for doing your stuff and call that servlet from Ajax and on success of that call show the hidden Div with your information(this will be available in current JavaScript context) in that div or so.

 

Hope this helps you.