@givemeawhisky I found this post while trying to determine why, when I try to pass a variable to my pay.jsw file it logs to the console as undefined …
I can’t see what I’m doing different … it logs to the console correctly on the front end page … ![]()
$w.onReady(function () {
$w("#button2").onClick( (event) => {
let nameOfCollection = $item("#text3").text;
console.log('nameOfCollection is: ' + nameOfCollection)
createMyPayment(nameOfCollection)
...