Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Custom Validation to Asset Metadata

Shaheena_Sheikh
Level 4
Level 4

I need to add custom validation to a field in the asset metadata editor schema (Dropdown). I created clientlib (category = xyz) and js files under /apps (the JS file is only having a console.log). To the dropdown node I added property 'extraclientlibs' and value 'xyz'. I added a 'granite:data' node as a child node to the dropdown.

But the JS doesnt load.

Where do we need to add the JS to be able to validate a field in asset metadata schema?

(i was working on /conf/global/settings/dam/adminui-extension/metadataschema/default/application/items/tabs/items path)

 

1 Accepted Solution
Anudeep_Garnepudi
Correct answer by
Community Advisor
Community Advisor

@Shaheena_Sheikh 

Add extraClientlibs property to cq:dialog node and the property name "extraClientlibs" is case sensitive.

Try

  • Create a node(nt:unstructured) with name clientlibs under tab
  • Add property sling:resourceType (String) with value granite/ui/components/coral/foundation/includeclientlibs
  • Add property js (String) with custom clientlib category as value

View solution in original post

4 Replies
Anudeep_Garnepudi
Correct answer by
Community Advisor
Community Advisor

@Shaheena_Sheikh 

Add extraClientlibs property to cq:dialog node and the property name "extraClientlibs" is case sensitive.

Try

  • Create a node(nt:unstructured) with name clientlibs under tab
  • Add property sling:resourceType (String) with value granite/ui/components/coral/foundation/includeclientlibs
  • Add property js (String) with custom clientlib category as value

View solution in original post

Shaheena_Sheikh
Level 4
Level 4
The solution is to add the category as dam.gui.coral.<name here> and it gets loaded!