i have an expression and i want to add a link for a specific text inside the expression
nb: i can not use link to
hi @Omar Titouhi
you can use this javascript if you want to do it.
var a = document.createElement('a');
var linkText = document.createTextNode("my title text");
a.appendChild(linkText);
a.title = "my title text";
a.href = "http://example.com";
document.body.appendChild(a);
or i am attaching the OML take help from it.
Regards,
Prince
Hi Omar,
In Traditional Web, you need to set escape content to no and add an anchor tag (for example "<a href='https://www.google.com'> link </a>") to your expression. In Reactive, you must enclose the expression by an anchor tag with an HTML element and define its attributes like href = "https://www.google.com".Hope it helps. Best Regards,Bernardo.
Hi @Omar Titouhi ,
Can you please clear it's traditional or reactive application?
Always try to mention application type at the time of posting questions it will help members to provide you better or exact solution.
Best
Arun
it's reactive
Hey,
Pasting here a possible solution in Reactive and the respective look and feel.
Hope it helps!
@Omar Titouhi Please mark this as solution so it can helps others and close the topic.
Thanks