Access cq:dialog component properties in js | Community
Skip to main content
Sanjay_Bangar
New Participant
Oct 22, 2021 3:19 PM UTC
Solved

Access cq:dialog component properties in js

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

        

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sanjay_Bangar
Sanjay_BangarAccepted solution
New Participant
Oct 22, 2021 4:49 PM UTC

Hi ,

     I tried below and it is working for me.

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

 

3 replies

Sanjay_Bangar
Sanjay_BangarAuthorAccepted solution
New Participant
Oct 22, 2021 4:49 PM UTC

Hi ,

     I tried below and it is working for me.

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

 

Translate
Kiran_Vedantam
New Participant
Oct 22, 2021 4:36 PM UTC
Ankur_Khare
New Participant
Oct 22, 2021 3:30 PM UTC

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

Translate