Triggering Transforms

Datasiv's Javascript component allows you to run queries and methods inline, from javascript. For example, the code below will trigger the graphqlApi0 query if the text property of the input field input0 is equal to yes.

2606

👍

How to reference App Objects

You are able to reference other components using javascript dictionary terminology and the {{}} syntax.

In this instance, we would like to reference a text property from the input0 component. All frontend component properties are stored under the global data key, hence, we type in {{data.input0.text}}

To trigger this transform from the frontend, select data.javascript0. This will trigger the javascript code from the Javascript component with identifier javascript0.

1318