How to enable configuration conditionally?
I have configuration which contains various fields. I want to enable one text field if above field (check box) is selected.I am not sure how can i do that without using any js.
I have configuration which contains various fields. I want to enable one text field if above field (check box) is selected.I am not sure how can i do that without using any js.
Hi,
What do you mean by configuration is it osgi configuration or design dialog configuration?
You can show hide field based on osgi config by using granite renderer, for e.g.
https://aemlab.blogspot.com/2019/07/aem-granite-custom-render-conditions.html
if configuration in design dialog then you can do it by setting a property in the text field item in the dialog e.g.
granite:hide="${!cqDesign.chkboxprop}"
if you need to show hide filed based on dialog field within dialog then you must need to write js
Thanks
Arun
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.