In the plugin editor, I have this field:
I use the plugin like so:
In action inside the plugin creator, I have this code:
but I constantly receive an error saying
product_ids.forEach is not a function. When I try to
console.log(product_ids), it looks like this:
which looks correct, they are all the values I want. But it’s not doing the loop I need. What am I doing wrong?
product_ids is a list field in your plugin then it’s not an array. It’s a bubble-specific object with methods for getting the actual array of values.
If you read the documentation above the plugin’s function (it’s updated dinamically) you can see how it works.