Skip to main content
Oct 16, 2015 2:29 AM UTC
Solved

Customize the form elements in the build form of customizing DAM metadata schema in the Granite UI (touch UI)

I see there are OOTB form elements such as dropdown, textfield etc.. in the buildform of the customizing DAM metadata schema in the Granite UI.

How do I add more form elements such as Pathfield, multiselectdropdown, multipathfield to this build form so that they can be used to customize the metadata schema. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
gopalKaAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Its not easily customizable. May be for a reason. If you absolutely must, here is one way. Disclaimer ofcourse is this is just an approach and not the official recommendation.

Overlay /libs/dam/gui/components/admin/schemaforms/formbuilder at /apps/dam/gui/components/admin/schemaforms/formbuilder. Then add your field at /apps/dam/gui/components/admin/schemaforms/formbuilder/formfields/autocompletefield. In autocomplete.jsp ,please remember to add    <input type="hidden" name="./items/<%= key %>/metaType" value="autocomplete"> . Basically a unique metatype. Add that new field to /apps/dam/gui/components/admin/schemaforms/formbuilder/builditems.jsp how it has been done for other fields. Overlay /apps/dam/gui/components/admin/schemaforms/formbuilder/view.jsp and update String formFieldsPath ="dam/gui/components/admin/schemaforms/formbuilder/formfields";. This was originally formFieldsPath ="/libs/dam/gui/components/admin/schemaforms/formbuilder/formfields"; and only seached for fields under this path in libs. Now you should be able to see the new field. I did a sample at https://www.dropbox.com/s/3b6ow6vgx58l192/autocomplete-4.zip?dl=0

2 replies

gopalKaAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Its not easily customizable. May be for a reason. If you absolutely must, here is one way. Disclaimer ofcourse is this is just an approach and not the official recommendation.

Overlay /libs/dam/gui/components/admin/schemaforms/formbuilder at /apps/dam/gui/components/admin/schemaforms/formbuilder. Then add your field at /apps/dam/gui/components/admin/schemaforms/formbuilder/formfields/autocompletefield. In autocomplete.jsp ,please remember to add    <input type="hidden" name="./items/<%= key %>/metaType" value="autocomplete"> . Basically a unique metatype. Add that new field to /apps/dam/gui/components/admin/schemaforms/formbuilder/builditems.jsp how it has been done for other fields. Overlay /apps/dam/gui/components/admin/schemaforms/formbuilder/view.jsp and update String formFieldsPath ="dam/gui/components/admin/schemaforms/formbuilder/formfields";. This was originally formFieldsPath ="/libs/dam/gui/components/admin/schemaforms/formbuilder/formfields"; and only seached for fields under this path in libs. Now you should be able to see the new field. I did a sample at https://www.dropbox.com/s/3b6ow6vgx58l192/autocomplete-4.zip?dl=0

Translate
Level 2
Jan 10, 2017 8:01 PM UTC

kalyanar wrote...

Its not easily customizable. May be for a reason. If you absolutely must, here is one way. Disclaimer ofcourse is this is just an approach and not the official recommendation.

Overlay /libs/dam/gui/components/admin/schemaforms/formbuilder at /apps/dam/gui/components/admin/schemaforms/formbuilder. Then add your field at /apps/dam/gui/components/admin/schemaforms/formbuilder/formfields/autocompletefield. In autocomplete.jsp ,please remember to add    <input type="hidden" name="./items/<%= key %>/metaType" value="autocomplete"> . Basically a unique metatype. Add that new field to /apps/dam/gui/components/admin/schemaforms/formbuilder/builditems.jsp how it has been done for other fields. Overlay /apps/dam/gui/components/admin/schemaforms/formbuilder/view.jsp and update String formFieldsPath ="dam/gui/components/admin/schemaforms/formbuilder/formfields";. This was originally formFieldsPath ="/libs/dam/gui/components/admin/schemaforms/formbuilder/formfields"; and only seached for fields under this path in libs. Now you should be able to see the new field. I did a sample at https://www.dropbox.com/s/3b6ow6vgx58l192/autocomplete-4.zip?dl=0

 

 

Hello, I did exactly same as explained here But i don't see my component in the build form. Did i miss anything?

Translate