Refer to a process variable in text element

Is it possible to refer to a process variable in the Text element?

Hello @jelledrm ,

unfortunately, this is currently not possible.

The workaround would be to create a text input, bind it to the process variable and make it read-only.

Jonathan

Hi @jonathan.lukas

Thanks for the reply. For a single value we can use your solution. Not for multi-line text. The text input is single line only. Also no (html/markup) can be used.

Hello @jelledrm ,

this is correct.

Good: Lately, we have been working on templating strings for secret replacement in connectors, so having a solution for text in forms should not be too far away.

I also opened a PR once for this feature, implementing it would not be that hard. But, we are looking to stick to FEEL for as many interactions as possible, so the templating should come from FEEL.

Jonathan

Any updates on this?

Hello @jelledrm ,

in Camunda 8.2, a text field in a form can be an expression. So, you can use feel to generate markdown which will enable what you require.

Jonathan

1 Like

Thanks for you answer. I am currently using Camunda 7.18. It seems this is not supported.

I see this error in the modeler:
“Text populated by an expression is not supported by Camunda Platform 7.18”

Will this be supported in a upcoming version? 7.19?

Hello @jelledrm ,

I am not sure about this, but you can read the release notes or try out an alpha version of 7.19

Jonathan

Any update on this?