Chat Suggested Items only returning the Value
1 Answer 5 Views
Tim Larson
Top achievements
Rank 1
Tim Larson asked on 11 May 2021, 12:58 PM

Hello,

How can I get the text and the value of the button pressed?  Right now it only appears to return the value which is not what I want the user to see.  Like in this example it should say option 1 when you click on option 1 and not show value 1 but pass it back for use in the code.

https://dojo.telerik.com/OkoCIxIT

How can I get this to work properly?

Thanks -Tim

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 14 May 2021, 09:18 AM

Hello, Tim,

I answered the question in the support thread you opened on the subject, but I will share my reply here as well.

Currently that is how the widget method functions by design. If you look the suggestedActions.value description in the documentation, that is the input that will be displayed when the user selects an action:

suggestedActions.value String
The value of the suggested action - the value that is used as an input when a suggested action is clicked.

I suggest setting a value that would be more suitable to your requirements.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Chat
Asked by
Tim Larson
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or