Hi,
I have build a template that has Category List. The list is populated from Local Storage and setting the selected value in the selectedCategoryID Local Storage variable using JS when clicked on the item.
Now my another page which uses the same template has a TextArea names mobTextArea. I want to print the chosen Category ID in this TextArea. The JS code that I have written in the template is below. The below code is written in the template mapping. The issue is that it is not printing the ID in the textarea.
element.on("click", function () {
Apperyio.storage.selectedCategoryID.set(value);
Appeyio('mobTextArea').val(Apperyio.storage.selectedCategoryID.get("$['id']"));
});
Appreciate if you can guide.