Hi Team
I am working on a component where on the dialog based on checkbox selection I want to display next field.
I have written granite:class and data attribute but something I am missing so it is not hiding when checkbox is selected.
below is the xml structure. Please correct me if doing anything wrong.
Thanks in advance
Solved! Go to Solution.
Views
Replies
Total Likes
Hey @Prashardan,
I think dialog level js is required to make the hide/show work. You can refer the below tutorial where its explained very clearly -
Also update the prop disabled to hidden in toggle.js line 38 as per your requirement
Hello @Prashardan
Have you added your checkbox-show-hide js with your component?
If you used checkbox-show-hide as a plugin did you add its clientlib category in your component dialog using "extraClientlibs"?
extraClientlibs="[your.checkbox.show.hide.category]"
And try the checkbox value like
value="{Boolean}true"
Please check this.
Thanks
Hey @Prashardan,
I think dialog level js is required to make the hide/show work. You can refer the below tutorial where its explained very clearly -
Also update the prop disabled to hidden in toggle.js line 38 as per your requirement
do you have acs common installed in AEM?
This feature is from ACS common.
Hello @Prashardan -
Are you using custom JS to hide/show the field? Do you see it loading on the dialog? If yes, try enabling debug and see if you have any errors with your script.
Hi @Prashardan ,
If you are using custom javascript for showhide functionality. please checkout this - https://www.youtube.com/watch?v=gcNa0uqxytg
Regards
Shiv
Views
Likes
Replies
Views
Like
Replies