Scripting Global Variables

Would be really useful if we could set javascript global variables across different features/scripts.

For example if I have a button that creates a new variable (i.e. let testVar = 1), it would be great to be able to use the newly created variable in the script of another feature. At the moment based on my experience you can’t access that newly created variable in the script of a different feature on the same parcel.

Sorry for all the feature requests, just some stuff that would give me even more tools for building better experiences through scripting :slightly_smiling_face:

1 Like

You should be able to set arbitrary properties on parcel which is available to all script contexts.


// script 1
parcel.someVar = 123
// script 2

oh wow that’s sweet was not aware of this and will try it out, thank you!!