Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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