Default value to the text field in AEM 6.4 | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sunjot16

Is the text field in Metadata Properties of an Asset?

 

If yes, then the below community post may be helpful:

https://experienceleaguecommunities.adobe.com/t5/Adobe-Experience-Manager/How-to-set-default-values-to-properties-in-meta-data-schema/qaq-p/329482

2 replies

arunpatidar
Community Advisor
Community Advisor
March 9, 2020
August 3, 2022

@arunpatidar  - I believe this works only for the new component. When i add the new field to existing component dialog, it does not save the default value using the value attribute automatically. The user needs to open the dialog, it takes populates the field from value property and save the dialog to save the field with this value in JCR.

I have a requirement where I need to save default values for new fields added to dialog without needing to open the dialog. Kindly advise how this can be done without involving any backend logic. Thanks!

sunjot16
Adobe Employee
sunjot16Adobe EmployeeAccepted solution
Adobe Employee
March 10, 2020

Is the text field in Metadata Properties of an Asset?

 

If yes, then the below community post may be helpful:

https://experienceleaguecommunities.adobe.com/t5/Adobe-Experience-Manager/How-to-set-default-values-to-properties-in-meta-data-schema/qaq-p/329482

ArchanaVAAuthor
Level 2
March 11, 2020
ThanksIts not for the asset, its a field for page properties @sunjot16