Hey! I was hoping to get a little clarification on using global variables from the builder in custom JS code. Ideally, I want to be able to create a variable through the GUI, link it to elements on the page, and then call and update that variable through custom JS files.
I know I can access the JS variables in the builder with the ${variable} syntax, but that doesn’t seem to translate to the global variables. I also tried playing around with mdItemAdd in the JS code, but wasn’t able to get where I was trying to be.
Another separate, but related question: If I use the mdActions script to trigger an API call I’ve set up through the REST API on Divhunt, will that still store the response data as a variable (provided it is set up to do so in the Divhunt REST API interface) or is that a separate function that also needs to be called?
Also, is there somewhere I can find more developer-oriented info on Divhunt’s data structure? I know you guys have a lot going on right now, so I get it if things are in flux. Even something super rough that gives some kind of overview of what we can play with would be helpful.
Any help you can provide is appreciated! Thank you in advance!