Expand my Community achievements bar.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

RTE Required Field In AEM 6.2

Avatar

Level 2

Hi 

I have a requirement in my component, Where the RTE Field is Required, I tried Adding required true, allowBlank False, But it is not working, I need to write the validation code to achieve this functionality, I found the code in below link but it is not working in AEM 6.2, I did the changes suggested in the link but the field is not validating.

http://experience-aem.blogspot.com/2015/08/aem-61-support-required-property-on-richtext-editor-rte-o...

Can anyone, Please suggest what are the changes I need to be done to make it work in AEM 6.2(Touch UI)

1 Accepted Solution

Avatar

Correct answer by
Administrator

The RTE does not required properties.

You can add a listener (validator) on click of OK button of dialog and check/validate accordingly.

Example implementation :- http://keysandstrokes.info/aem-touch-ui-richtext-validations/

 

I hope this helps.

~kautuk



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

The RTE does not required properties.

You can add a listener (validator) on click of OK button of dialog and check/validate accordingly.

Example implementation :- http://keysandstrokes.info/aem-touch-ui-richtext-validations/

 

I hope this helps.

~kautuk



Kautuk Sahni