Question tho - I tried this while session was running on laptop and iPad, pressed “store” button on iPad and I could recall the stored value from laptop. But after restarting laptop, I could restore value from laptop, but not from iPad anymore.
Any thoughts why that might be a case?
Example attached.
@Dazzer in example bellow is another way how to store values, only problem is that they get reset when session is closed. Might come in handy anyways.
I think the issue here is that the tap buttons are sync’ed across the different clients when the session is loaded and it triggers the script. That’s a behavior I’ll need to rationalize somehow… meanwhile I think the best course of action is to set bypass to true on these button to avoid sync.
Note that in any case, the variables saved in storage are not shared between clients, it may have seemed that way but was only a side effect of widget sync.
That’s possible with a custom module: instead of storing the value, send it and catch the message using the custom module, you’ll be able to do pretty much anything with it (the main drawback being that it requires diving into javascript a bit more)