Hi,
I’m trying to allow builders to pick an image file. Have set up this in main.js:
return {
get_settings: function() {
return {
test_image: {
main_label: “Test Image”,
base_format: “file”
}
};
},
get_template_data: function() {
let imageValue = presenter.get_setting(‘test_image’);
cs.log('Test image value: ’ + imageValue);
return {
test_image_value: imageValue
};
}
};
However, when an image is selected in build studio as below and Apply is clicked, the value is not returned to the presenter (empty array for imageValue in Detective).
Clicking Apply clears the selected image.
Have also tried base_format of image. Same result.
Any help much appreciated.
Thanks in advance,
Mark