Hi Team,
I need to hide a few custom nodes in the dialog. sling:hideResource is not working since the fields are custom. Could someone suggest how to hide few fields & set default values to send it in the json please?
Thank you
Views
Replies
Total Likes
Hi All,
Thank you all for the replies. I tried few approaches that has mentioned in the comments above but no luck.
I tried to add granite:class hide. It worked for me as expected.
Hope this would help for others.
Thank you!
If you search for "aem dialog show hide" you will find a lot of examples on the web. One of them that looks a bit old though but might still be working is this one:
can you give some example? Maybe you are searching for a hidden-field like this:
@Lakshmi9 Please refer this document to hide few fields in the dialog
https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/sling-resource-mer...
and to ignore few fields while exporting you can annotate it with @JsonIgnore
https://experienceleague.adobe.com/docs/experience-manager-64/developing/components/json-exporter-co...
try adding below if you are using coral3
granite:hidden=true
The HTML hidden attribute.
or try adding granite:class="hide"
Hi All,
Thank you all for the replies. I tried few approaches that has mentioned in the comments above but no luck.
I tried to add granite:class hide. It worked for me as expected.
Hope this would help for others.
Thank you!