How to add clickable link Camunda form(Linked)

Hello,

I want to add html tag for clickable link which should open in new tab and I want to use Camunda Form(linked) to achieve this.

If I’m providing the link directly in the tag itself then it’s clickable and opening in new tab.

<div>
  <a href="https://www.google.com/">Click here</a>.
</div>

I want to know is it possible to read this link from process variable rather then hardcoding it in tag.

1 Like

Hello,

can anybody help me with this ?

Thanks!

Hey there @dandotiya9722.

Yes, so you’ll want to use templating syntax here (you can technically do it in pure feel but it’s quite messy).

You can also use the text view component to achieve this if you don’t need any other HTML features, using markdown links.

That should have you covered, let me know how you get on :slight_smile:

Hi @Skaiir
Thanks for the response.

I have tried doing it using Templating syntax but no luck till now. do you have syntax to do it using templating syntax.
I don’t want to go with custom UI as I just want to open single link in new page and all other my requirement can be covered with tasklist only.

Thanks for the help!!!

Hello again,

Maybe you still have the example that you were using, and I might be able to figure out why it didn’t work out for you.

But in essence, it should just be:

<div>
  <a href="{{yourLinkVariable}}">Click here</a>.
</div>

And for the text view:

[Click Here]({{yourLinkVariable}})

Tried it myself on modeler sass, seems to work as intended.

If you’re still having issues, can you give me some information on the environment. And definitely the form schema involved, the input variables, ect…

Hope that helps.

Hi @Skaiir
I have made the mistake forgot to put "" while reading variable inside <a>.

Thanks for the help

No worries, glad I could help :slight_smile:

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