Is there any way to add default value to the text field in AEM 6.4
Solved! Go to Solution.
Views
Replies
Total Likes
Is the text field in Metadata Properties of an Asset?
If yes, then the below community post may be helpful:
Views
Replies
Total Likes
Yes, You can use value property to add default value in text fields.
Another way is to create cq:template node and add a default value.
http://www.sgaemsolutions.com/2018/02/cqtemplate-and-cqtemplatepath.html
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@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!
Is the text field in Metadata Properties of an Asset?
If yes, then the below community post may be helpful:
Views
Replies
Total Likes
Views
Replies
Total Likes