Expand my Community achievements bar.

SOLVED

multi field rte

Avatar

Level 4

I have an multi field rte where I need to restrict number of chars to specific limit. I have written custom validation, it does give an alert that max chars exceeded. if I close the alert and push okay button on the dialog with out changing the content. (meaning keeping the exceeded chars as is) it is showing the same content.
please help

1 Accepted Solution

Avatar

Correct answer by
Administrator

Here is an article that talks about how to validate values that an author enters in a dialog. You need to write app logic to perform validation on dialog values- as discussed in the article. 

https://helpx.adobe.com/experience-manager/using/creating-touchui-validate.html

 Add a listener (validator) on click of OK button of dialog checking the length of the characters entered in RTE and validate accordingly.

 

Reference article:- http://10codes.blogspot.in/2014/02/adding-custom-listener-on-rich-text.html

//Adding custom listener on rich text component in cq5 to impose maximum number of characters

 

I hope this helps.

~kautuk



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

Here is an article that talks about how to validate values that an author enters in a dialog. You need to write app logic to perform validation on dialog values- as discussed in the article. 

https://helpx.adobe.com/experience-manager/using/creating-touchui-validate.html

 Add a listener (validator) on click of OK button of dialog checking the length of the characters entered in RTE and validate accordingly.

 

Reference article:- http://10codes.blogspot.in/2014/02/adding-custom-listener-on-rich-text.html

//Adding custom listener on rich text component in cq5 to impose maximum number of characters

 

I hope this helps.

~kautuk



Kautuk Sahni