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

Popup which has a text area

Avatar

Level 2

Hi all,

Is it possible to bring up a popup which has a text area, on click of a button?

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can use app.response().

var reply = app.response("Question to ask", "Title of popup", "Default answer");

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10

You can use app.response().

var reply = app.response("Question to ask", "Title of popup", "Default answer");

Avatar

Level 2

Thanks mate. It absolutely works fine.

Avatar

Level 2

Is there a way to limit the no. of characters that the user enters in that box?

Avatar

Level 10

Not that I know of.

You would have to script a test on the reply and then you could warn the user and then pop up the dialogue again again.

Avatar

Level 2

Ok mate. Thanks again. Will try that way