A transformation extracts variables out of a single field. These variables will be available along with your
field variables.
(
{exampleValue && (
<>
(
{formFieldsVis.expressionDetails.show && (
) : (
'Expression'
)
}
htmlFor={`${id}-expression`}
required={formFieldsVis.expressionDetails.required}
>
)}
{formFieldsVis.mapValueDetails.show && (
) : (
'Variable Name'
)
}
htmlFor={`${id}-mapValue`}
>
)}
{Object.entries(transformationVars).length > 0 && (
<>
This transformation will add the following variables:
{Object.entries(transformationVars).map((entry) => {
return `\$\{${entry[0]}\} = ${entry[1]?.value}\n`;
})}
>
)}
>
)}
);
};