Hello,
I'm trying to map a collection Boolean value to a Select component and read the value with an image change js function on pageShow event.
Currently, I have a non-visible Select component on my page with label/value set as true/false (see screen shot) and the following js on pageShow;
var stampUnlocked = Boolean (Appery('stampBoolean').value());
if (stampUnlocked === true){
Apperyio('stampIcon').getImagePath('filling.png');
}
else {
Apperyio('stampIcon').getImagePath('getStamp_btn2.png');
}
The DB service mapping seems to be correct, but it is unsure if the collection Boolean value is being passed correctly to the select component. That and I'm not sure if I have the correct js on pageShow.
Any help or suggestions would be greatly appreciated.