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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Radio button in AEM

mallikac4933100
Level 2
Level 2

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
viveksachdeva
Correct answer by
Level 7
Level 7
2 Replies
Veena_Vikram
Community Advisor
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

viveksachdeva
Correct answer by
Level 7
Level 7