Expand my Community achievements bar.

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 ?