Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Access cq:dialog component properties in js

Avatar

Community Advisor

Hi,

     How can we access component cq:dialog properties(name, description) using simple client side  js   .

Using server side js we can able to access easily.

Regards,

Sanjay

        

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi ,

     I tried below and it is working for me.

var titleFromDialog = $(".button-link").val();
console.log(titleFromDialog)

 

View solution in original post

3 Replies

Avatar

Community Advisor

Read the properties in component.html using sightly and keep them as hidden fields and then access in ur js file.

Avatar

Community Advisor

Avatar

Correct answer by
Community Advisor

Hi ,

     I tried below and it is working for me.

var titleFromDialog = $(".button-link").val();
console.log(titleFromDialog)