In it’s basic form I have an Input Radio Group with three radio buttons. I am trying to store the ID/name/value of the checked button in Local Storage, and then display that Local Storage info on the same web page.
My pages are SPA.
Should the on-click event be on the label or input?
My on-click event looks like dmx-on:click="specialist_data.upsert({id: specialist_id},{name: specialist_name, value: specialist_cost, id: specialist_id})"
My values on the page display as <p>name :: {{specialist_data.data[0].name}}</p> <p>value :: {{specialist_data.data[0].value}}</p>
but nothing is showing
I don’t know what I am doing wrong, please help.
Also, how can I use DevTools to view the local storage and to see what is passed between the radio button and the local storage?
I am getting a DevTools warning… BaseComponent.js:276 Unknown component found! datastore
Is this my problem?
If yes, then how do I resolve this?
I have already upgraded to v.2.6.0
I'd highly recommend uploading all DMX prefixed directories (delete old directories first or rename dmxetcetcBACKUP). Clearing any cache client (browser) and server sides (NGINX, CloudFlare etc). Close your browser and reload the website. Works for me 99.9% of the time Riggers..
I think you are onto something. I have just realised that the <script src="../dmxAppConnect/dmxDatastore/dmxDatastore.js" defer=""></script>
script link was inserted onto the master/parent page of the SPA page (I didn’t notice) but that page was not saved.
I have now saved it and the warning no longer shows. It hasn’t resolved my overall issue but may well get me back on track. Cheers.