How to set default values to properties in meta-data-schema applied to certain aem dam folder

Avatar

Avatar

sdk60873563

Avatar

sdk60873563

sdk60873563

23-03-2019

Hi,

I have certain custom properties defined in meta data schema (resourceTypes ex.text fields, tags, date etc).

I want to set default values to certain properties having resource type  tagpicker and textfields. How shall i set default values to these fields.

While editing any asset, these fields should be pre filled.(using aem 6.3)

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

23-03-2019

Hi,

It's gonna be manual step to set default value.

you need to go to CRXDE, locate your schema and set default value to field using value property.

Screenshot 2019-03-23 at 5.44.29 PM.png

Answers (5)

Answers (5)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

25-03-2019

yes, I tried , its not working to tag.

Avatar

Avatar

sdk60873563

Avatar

sdk60873563

sdk60873563

25-03-2019

correct, i am doing same way. some how i do not see it working.

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

25-03-2019

what value you set for tagfield?

It should be type of String[]

e.g. we-retail:apparel/footwear

Avatar

Avatar

sdk60873563

Avatar

sdk60873563

sdk60873563

25-03-2019

Thank you for response Arun.

I have already tried this approach , it works for all others except tagpicker. Any thoughts on tagspicker ?

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

23-03-2019

Great response Arun!