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

Touch UI listeners

Avatar

Level 4

Hi All,

I would like to know how can we use touch UI listeners  . I want to achieve something like below :
There are 2 radio buttons (A,B) and there is a text box.
Upon Clicking on radio button A ,text box should be displayed and upon clicking on button B ,text box should be hidden.
By default its hidden.

I also need the same logic for checkbox also.


Please give me some idea how can I implement this.

Thanks,

Pallavi

1 Accepted Solution

Avatar

Correct answer by
Level 10
8 Replies

Avatar

Level 10

Have a look at the sample implementation for this scenario is provide here with Image in core component

/apps/core/wcm/components/image/v1/image/clientlibs/editor/js/decorative.click.js

-ref to AEM 6.3

Avatar

Level 4

Thank you.


But I would like to know if there is any  way like the hide show functionality of Dropdown field in List component.

Please find the path below :

/libs/foundation/components/list/cq:dialog

Please let me know if there is any way , I will try this way as well.

Thanks,
Pallavi

Avatar

Correct answer by
Level 10

Avatar

Level 4

Yes similar to the link which you have given .
Is there a similar implementation for Radio button and check boxes ?