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

Radio button in AEM

Avatar

Former Community Member

Hi I'm trying to access the radio button value from dialog box of component, i.e., I have configured a radio button on component. I want get the boolean value of the radio button if selected in the component js. But I am not understanding how to know if radio button is checked or not in javascript.

sling:resourceType = /libs/granite/ui/components/foundation/form/radio

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Community Advisor

Hi Mallika

    I am not sure about the use-case , but one way you can do is to

  1. fetch the value from your dialog in your.html file
  2. set it as a hidden field
  3. using your jquery, you can fetch this value from your page at any time

Thanks

Veena

Avatar

Correct answer by
Community Advisor