Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
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