Skip to content

Instantly share code, notes, and snippets.

@voipnorm
Created October 1, 2019 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voipnorm/ecd986e0fbc34e5cbcc2aeb234b4a5c6 to your computer and use it in GitHub Desktop.
Save voipnorm/ecd986e0fbc34e5cbcc2aeb234b4a5c6 to your computer and use it in GitHub Desktop.
xapi.event.on('UserInterface Extensions Panel Clicked', (event) => {
if(event.PanelId == 'reportissue'){
xapi.command("UserInterface Message Prompt Display", {
Title: "Report issue"
, Text: 'Please select what the problem area is'
, FeedbackId: 'roomfeedback_step1'
, 'Option.1':'Cleanliness'
, 'Option.2':'Technical issues with Audio/Video'
, 'Option.3': 'Other'
}).catch((error) => { console.error(error); });
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment