Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to limit number of characters in Richtext field

Avatar

Avatar
Validate 1
Level 2
lovepreetk75597
Level 2

Likes

3 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile

Avatar
Validate 1
Level 2
lovepreetk75597
Level 2

Likes

3 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 3
View profile
lovepreetk75597
Level 2

22-07-2020

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

Richtext RTE

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

29-07-2020

@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.

Answers (1)

Answers (1)

Avatar

Avatar
Affirm 5
Level 2
SameerDhawan
Level 2

Likes

11 likes

Total Posts

13 posts

Correct Reply

7 solutions
Top badges earned
Affirm 5
Boost 10
Give Back 3
Give Back
Boost 5
View profile

Avatar
Affirm 5
Level 2
SameerDhawan
Level 2

Likes

11 likes

Total Posts

13 posts

Correct Reply

7 solutions
Top badges earned
Affirm 5
Boost 10
Give Back 3
Give Back
Boost 5
View profile
SameerDhawan
Level 2

22-07-2020

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