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

Query regarding passing HTML hidden value to slighty

Avatar

Level 3

Hi All,

The use case is when the user selects the drop down in UI we have to pass selected drop down option value to Sightly so that we hit back end service in java class. How to achieve above use case? how to pass an javascript variable value to slightly (java class) ? if we update the javascript variable in an HTML hidden variable how to pass the hidden variable slightly java class

1 Accepted Solution

Avatar

Correct answer by
Level 9

@KishCq5@@ ,

You might have to explore server-side javascript in AEM. Sever side javascript is the only option left in your case.

Here is the document which might help you.

https://docs.adobe.com/docs/en/aem/6-1/develop/sightly/use-api-in-javascript.html

Jitendra

View solution in original post

2 Replies

Avatar

Level 10

Dropdown in UI - do you mean in a component dialog or in the actual webpage? 

Avatar

Correct answer by
Level 9

@KishCq5@@ ,

You might have to explore server-side javascript in AEM. Sever side javascript is the only option left in your case.

Here is the document which might help you.

https://docs.adobe.com/docs/en/aem/6-1/develop/sightly/use-api-in-javascript.html

Jitendra