Can Transformers take a parameter?

I have a couple functions that I need to use with different inputs from different data sets. Can I pass an input to the transformer?

I don’t think so. You’ll have to get your parameter from elsewhere in the app (or from a state that you set dynamically).
`function doStuff(param) {
// […]

const param = {{currentHighlighted.value}}

Yes, @pmetzdorf is right. Unfortunately at this point we don’t support parameters into transformers. We’ll be looking at improving this in around 3 months time, and hopefully will support parameters soon!


I’ve created a workaround for this First class JavaScript functions (with workaround)