Default value to the text field in AEM 6.4

Avatar

Avatar

ArchanaVA

Avatar

ArchanaVA

ArchanaVA

09-03-2020

Is there any way to add default value to the text field in AEM 6.4

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

sunjot16

Employee

Avatar

sunjot16

Employee

sunjot16
Employee

10-03-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-...

Answers (1)

Answers (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

09-03-2020

Yes, You can use value property to add default value in text fields.

https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/granite-ui...

 

Another way is to create cq:template node and add a default value.

http://www.sgaemsolutions.com/2018/02/cqtemplate-and-cqtemplatepath.html