260
Views
6
Comments
Solved
add a link inside of an expression

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

2024-05-08 06-29-37
Prince Aadil Khan Panwar
Solution

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

expressionLink.oml
2021-03-07 10-07-34
Bernardo Bruno

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.







2025-02-10 17-24-13
Arun Rajput

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

2024-05-05 19-43-19
Omar Titouhi

it's reactive

2019-01-31 08-54-57
André Costa
Champion

Hey,

Pasting here a possible solution in Reactive and the respective look and feel.

Hope it helps!

2019-01-31 08-54-57
André Costa
Champion

@Omar Titouhi Please mark this as solution so it can helps others and close the topic.

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.