Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

How to show hide feilds using Checkbox?

Avatar

Level 2

Prachi_Mathur_0-1648123667465.png

I created this component and follow these steps to show a field when a checkbox is checked but it is not working.

1. Add cq-dialog-checkbox-showhide class to checkbox field.

2. Add cq-dialog-checkbox-showhide-target data attribute to the granite:data node under checkbox and value will be jquery selector I have used .toggle.

3. Add the selector class to each field that you want to show/hide.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Community Advisor
1 Antwort

Avatar

Korrekte Antwort von
Community Advisor