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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
Mvenford
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Mvenford
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Mvenford
Level 1

15-10-2015

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. 

View Entire Topic

Avatar

Avatar
Boost 5
Employee
kalyanar
Employee

Likes

5 likes

Total Posts

182 posts

Correct Reply

78 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 50
Affirm 5
View profile

Avatar
Boost 5
Employee
kalyanar
Employee

Likes

5 likes

Total Posts

182 posts

Correct Reply

78 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 50
Affirm 5
View profile
kalyanar
Employee

15-10-2015

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