Description
We have a simple use case for the bot to prompt for several pieces of information. The form is
shown to the user for him or her to fill out and then click either the Cancel or OK button.
For example, consider a form-like message with 2 editable fields and 2 drop downs such as
First name [__editable__]
Last name [__editable__]
Likes beer [__Yes | No__ |\/]
Favorite color [__Red |Blue|Green|Black__ |\/]
(Cancel) (OK)
How is the developer supposed to distinguish
- which edit field has just been updated and
- which drop down has had its selection changed?
Error
NA
Which App Type (OAuth / Chatbot / JWT / Webhook)?
Chatbot
Which Endpoint/s?
Chatbot
How To Reproduce (If applicable)
Create a message with multiple entry fields and drop downs.
For the entry fields the approach seems to be to use form fields per
https://marketplace.zoom.us/docs/guides/chatbots/customizing-messages/message-with-form-field
and then look at the “key” within
"fieldEditItem": {
"currentValue": "",
"key": "Title",
"newValue": "Developer Advocate"
},
For drop downs the doc at
https://marketplace.zoom.us/docs/api-reference/webhook-reference/chatbot-events/dropdowns
just shows selectedItems in the payload of the interactive_message_select event.
"selectedItems": [
{
"value": "tesla"
}
],
How is the developer to disambiguate amongst multiple drop downs?
There is no “key” or otherwise it seems. What am I missing here?
For the ‘OK’ button click the doc at
https://marketplace.zoom.us/docs/guides/chatbots/customizing-messages/message-with-buttons
shows sending the original message content. It would be verify beneficial to send the current state
of the message elements and not attempt to track changes per above.
Screenshots (If applicable)
NA
Additional context
NA