cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.input - on selecting suggestion items

former_member193947
Participant
0 Kudos

Hi,

I tried to display suggestion items by implementing livechange event to sap.m.input field by concatenating multiple field values to text property. It works fine as expected. But, on selecting one in the list of suggestion items, the complete text get's displayed in the input field, while i want only first word of the concatenated text to be displayed. Is it possible to achieve ? If yes, can you please point me some sample code to achieve it ?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

iftah_peretz
Active Contributor
0 Kudos

Hi,

A working example via JSfiddle/JS Bin etc. would have been helpful to get you to where you want and write the code suggestions. Even code snippets of some sort.

Based on what you have described, why not use other events to control that behavior like submit? Or change it to suggest and then use suggestionItemSelected?

former_member193947
Participant
0 Kudos

Thanks Iftah. We fixed it by using live change event by slicing the string that is selected.

iftah_peretz
Active Contributor
0 Kudos

Great. Please mark/update the correct answer and close the thread.

former_member193947
Participant
0 Kudos

I posted this question some time back and it was with my previous project. I don't have the code to post. So, just closing the thread. thanks for your comments.