cancel
Showing results for 
Search instead for 
Did you mean: 

How to get length of input field in sap ui5.?

0 Kudos

Hello Everyone,

I have created input field in flex box using xml view. my query is how we can get length of input field in controller. i tried using  getMaxLength() method. but no use.

Regards,

manju

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Manjunatha,

If you mean length of data entered then you can try like this.

this.byId("__input0").getValue().length.

Regards,

0 Kudos

Thank you.

former_member182862
Active Contributor
0 Kudos

Hi manjunatha

can you mark Mayank's answer as correct?

Dennis

(Moderator)