Kibana Canvas disable link based on value

Hello,

Is it possible to disable a link of canvas Text Element based on search value ?

For example if value=1, link is supposed to be not clickable.

Thank You

By "disable a link", you mean rendering as normal text ?

If so, then you can try this :

var_set name="value" value=1
| var_set name="prepared_link" value={if condition={var name="value" | eq value=1} then="not clickable" else="[clickable](https://elastic.co)"}
| markdown "Conditional link : " {var name="prepared_link"} ". And then something else."
| render

It Worked Well.
Thank You

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.