Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Personas 2.0 SP03: How to limit the user's input text?

Hi Personas 2.0 SP03 experts,

I am using a text field for user to input some text. With SP03 it allows the text wrapping too. Due to the limitation of saving, I need to "limit/inform" user that he can only type certain number of chars, say max 100 chars.

Below are my thoughts:

Solution 1: while user is typing in the chars, there is a dynamically updated label indicating how many chars left to input. But how to detect how many chars have been input by users while he is typing text?

Solution 2: Is there a way in Personas to block/stop user's typing activity when the number of chars reach the max number of chars allowed?

Solution 3: is there something like "loss focus" event for the text field so that when user left the focus, an auto check or auto truncation can be performed so user can see what text is actually input in the text field? The drawback is that user may have typed too many chars without being alerted.

Any ideas? Thanks.

Dong Zhu

Not what you were looking for? View more on this topic or Ask a question