A very silly question, but I can´t find answer. If I want to retrieve a field from a resultset, but address it by a variable (so not by its real field name), how do I do that?
$w('#dataset1').getCurrentItem().[variable]
Thanks.
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
I already solved it, but thanks for your time. The solution was simple:
$w('#dataset1').getCurrentItem()[fieldname] , so without the dot, with the square brackets.
Hi,
Can you please clarify what is the use case? What are you trying to achieve?