Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

How to add default value to dropdown field in the block of universal editor

Avatar

Level 1

Hi everyone,

I have a requirement for the blocks in the universal editor where for richtext editor I have to limit the text till 100 char, in the dropdown I have to show sone option by default selected. how can we achieve this. 

for text fild I tried 

"validation": {
"maxLength": 100
} and it works. but for richtext it is not working.

 

Thank you 

@EdS 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Level 1

@lignite 

 

Avatar

Community Advisor

Hi @dynamicuser 

Can you please check here

 

 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/dev... - Sample 2

 

{
  "id": "another-richtext",
  "fields": [
    {
      "component": "richtext",
      "name": "rte",
      "label": "Rich Text",
      "valueType": "string",
      "validation": {
        "maxSize": 1000,
        "customErrorMsg": "That's about as funny as a screen door on a battleship."
      }
    }
  ]
}

 

 

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 1

Tried the above mentioned solution it is not working.

Avatar

Administrator

@dynamicuser Just checking in, were you able to resolve your issue? We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it, Your insights could really benefit the community. Thanks again for being part of the conversation!



Kautuk Sahni