Skip to main content
Level 4
May 27, 2024 12:43 PM UTC
Solved

How to load clientlibs (to setup default values to page properties, show/hide fields) while creating a page using template in AEM 6.5?

Hi Team,

I did try to create Clientlib with categories="[cq.authoring.editor]" and load while creating a page using template, but it didn't load.

where as the same clientlib loading while editing page properties with custom category.

My requirement is to do below activities while creating a page,

  1. setup current date value to a date field.
  2. show/hide a field based on other field default value.

can you guys let me know what did i miss here?

 

Thanks,

Raju.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
EstebanBustamante
EstebanBustamanteAccepted solution
Adobe Champion and Community Advisor
May 27, 2024 2:44 PM UTC

Hi, 


This is how I have set it:

 


It is working fine for me:

 

Hope this helps

Esteban Bustamante

4 replies

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
May 27, 2024 1:26 PM UTC

Hi,


You could simply create your own clientlib and then include it in the page properties' dialog, this article explains how to do it: https://adapttoaem.blogspot.com/2021/02/aem-create-custom-touch-dialog-ui-edit.html 

 

Let me know if you have any issues.


Hope this helps.

Translate
Esteban Bustamante
Level 4
May 27, 2024 2:07 PM UTC

Hi @estebanbustamante ,

Thanks for your quick response.

I tried the same thing, but didn't work.

here are more details -

Clientlibs -

 

Clientlibs are not loading while creating page -

Same clientlibs are loading while editing page properties -

Translate
EstebanBustamante
Adobe Champion and Community Advisor
EstebanBustamanteAdobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
May 27, 2024 2:44 PM UTC

Hi, 


This is how I have set it:

 


It is working fine for me:

 

Hope this helps

Translate
Esteban Bustamante