Ajay
Ajay

Reputation: 420

How to copy authored content data into a html form in AEM

How can I copy an authored content from my AEM touch UI textarea field to html form using javascript. As soon as I press the submit button in the form, my authored data should be auto-populated into the texterea html form and submit it.

In angularjs is easy using $scope but how to do it in plain vanilla javascript ?

Upvotes: 0

Views: 86

Answers (1)

Florian Salihovic
Florian Salihovic

Reputation: 3951

Everything, which is authored via Touch UI should be saved as property to a resource. This property can be read and when the page is rendered, the text will be written into the markup.

Upvotes: 1

Related Questions