Expand my Community achievements bar.

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.

3 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

Avatar

Level 1

Tried the above mentioned solution it is not working.