Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
can we set max length for text RTE.??I did found few solutions online stating that we can adding property directly as
function(field){var temp=this.getValue(); if(temp.length>500){ this.markInvalid("Description should not exceed 500 characters"); return false; }else{ this.clearInvalid(); return true; }}
(or)
by creating a custom listener.?
which is the best approach ?
Solved! Go to Solution.
Hi Vijay,
Yes, the listener which you got will work for Classic UI. You can directly include as a property in the dialog node.
I hope you got the solution from this thread: http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...
However for Touch UI, I think you need to write the script(Listener) in separate JS file to validate the same.
See this community article for a reference in Touch UI
//http://adobeaemclub.com/aem-touch-ui-dialog-validation/
Also see this recent thread that describes the same use case: http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...
Hope this helps!
~ Ratna.
View solution in original post
Views
Likes
Replies