Hi, I’m trying to write some JavaScript code and need to read the value of a variable. I believe we need to refer to its UUID in JavaScript, but please correct me if there’s a better way.
Just wondering—what is the process for discovering the UUID of a variable in WeWeb?
Or is it possible to reconstruct this Javascript in nocode formula?
The code snippet for context is:
const clientSecret = variables[‘SOME UUID HERE THAT IS THE VARIABLE’];
var elements = stripe.elements({
clientSecret: clientSecret,
});
The fastest way to know it would be to place the variable in the formula editor and then changing it from formula to JavaScript. It will automatically display the UUID of the variable.