Expand my Community achievements bar.

SOLVED

How to limit number of characters in Richtext field

Avatar

Level 3

Hi Everyone,

 

We have one RTE field where we need to limit number of characters. As maxlength property is not supported by Richtext field so is there any another approach we can follow to limit characters in RTE.

Thanks in advance.

 

Regards,

lovepreet

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@lovepreetk75597  Use Input text field and remove the border to make it look like RTE text.

 

 In RTE, edit source of HTML element using source edit, add an ID to the element. Now put a JS in code editor for the element that you have created and validate the length.

View solution in original post

2 Replies

Avatar

Employee

Hi Lovepreet,

 

Please refer to the below forum thread. This might help you as discussed earlier.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/required-and-maxlength-pro...

 

Regards

Sameer Dhawan

Avatar

Correct answer by
Employee Advisor

@lovepreetk75597  Use Input text field and remove the border to make it look like RTE text.

 

 In RTE, edit source of HTML element using source edit, add an ID to the element. Now put a JS in code editor for the element that you have created and validate the length.