In my case i m using Pega v6.2 so i m not abl to get the max and min characters for TextArea control.
Secondly,I have to use this requirement on a modal dialogue.I am using a button where there is no Submit action for which even if on click of the button it throws an error but its not persisting on the modal dialogue.The modal dialogue popup is getting closed even if there is an error.Please suggest how to proceed on this.
Posted: 5 years ago
Posted: 9 Oct 2016 0:54 EDT
Dharanitharan Ravindran (DharanitharanR)
LSA, DC, CS, BA & UI Specialist
1) Property rule form to be updated with Max length.
Pros: Clean and neat ; Cons: The value gets truncated at the back end & the user doesnt know about it which is a bad design as it may truncate the important part of text
2) Edit validate rule
Pros: Best practice,Reusability Cons: There is an error message on screen for entering more characters. The user might truncate but then exactly how much he needs to is a bit of UI design issue
Pros: The end user is not allowed to enter more than x number of characters as he is no-more able to type in. You can save as any of the pxInputText or Text area controls and simply add the max characters to it. This will work the way it does in Pega 7.This is subtle and does job without any fuss & is reusable too. Cons: Not a Pega best practice to write custom controls.