Ask the Community, Dynamically Grab Button Data via JavaScript

By Jay Salois

Does anybody know how to grab Button data with JavaScript after clicking it? Specifically, a tag. Using this.getComponentByName and passing in a specific name is a hard coding method I want to get away from. I'd rather pass in a tag name dynamically. From what I can tell there isn't a function available under the hood that does this, and Matej's JS library doesn't have it either.

Created at 2023-03-22T13:35:32.000Z