cancel
Showing results for 
Search instead for 
Did you mean: 

Input Field restriction

former_member220454
Participant
0 Kudos

Hi

I created an editable input field,  LENGTH 40 , VALUE to my context element TYPE STRING40.

But i have a problem,it's possible to write 44 caracters in, and i have a message 'Entry too long'.Because my context is on 40.

How is possible ? Do i have to manage on OnEnter ?

Thanks for your help

Serge

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

As far I knew, it won't allow user to enter more that 40 characters if you bind to attribute of type CHAR40 or STRING40.  No need to handle manually.

If the attribute is of type with more character say 60, then in onAction of input field read the data and get the length using strlen( ) and if it is more than 40 display warning message.

Hope this helps u.,

Regards,

Kiran