We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 894976a commit 0e2fb48Copy full SHA for 0e2fb48
src/easy-autocomplete.js
@@ -21,7 +21,7 @@ function init(Survey) {
21
Survey.JsonObject.metaData.addProperty("text", {
22
name: "choices:itemvalues",
23
onGetValue: function(obj) {
24
- return ItemValue.getData(obj.choices);
+ return Survey.ItemValue.getData(obj.choices || []);
25
},
26
onSetValue: function(obj, value) {
27
obj.choices = value;
@@ -31,7 +31,7 @@ function init(Survey) {
31
name: "choicesByUrl:restfull",
32
className: "ChoicesRestfull",
33
34
- return obj.choicesByUrl.getData();
+ return obj && obj.choicesByUrl && obj.choicesByUrl.getData();
35
36
37
if (!obj.choicesByUrl) {
0 commit comments