How to device Value and Text Option Items for a SmartMessageBox Options input

See All Questions HereCategory: QuestionsHow to device Value and Text Option Items for a SmartMessageBox Options input
Paully asked 4 months ago

Hello MyOrange community :-) !
Is there a way to define key/value pairs of option items in a SmartMessageBox options input? 
The example of the SmartMessageBox using a options input shows this:

$.SmartMessageBox({
title: "Smart Alert: Select",
content: "You can even create a group of options.",
buttons: "[Done]",
input: "select",
options: "[Costa Rica][United States][Autralia][Spain]"
}, function (ButtonPress, Value) {
alert(ButtonPress + " " + Value);
});

I am hoping to use a typical key value scenario (value text) for the option input. Would even appreciate an example of using the data from an $ajax call as the source of the option values.
Any help is appreciated.
Cheers!

Paully replied 4 months ago

Oops. A bit of typo in the subject line… "How to device Value and Text Option…" should be "How to 'define' Value and Text…". Sorry about that.

1 Answers
Paully answered 3 months ago

Found the answer myself…

…which, in my case, involved data in a JSON response. Now I am experiencing an issue with the SmartMessageBox not finding the sound file. 

I’ll post the issue in a separate thread.