Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5188 Vizualizări

Hi everyone!   

I'm having a field to store website link. I need to print that field in qweb and also to open a url link in new tab when click on it. 

How must i do it! Kindly help me here!

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Try the following

static: < a href="your_link">Display Text
dynamic: < a t-attf-href="your_link">Display Text
using target="_blank" inside the anchor tag helps to open the link in new tab

Regards

Imagine profil
Abandonează
Autor

Thank you

Cel mai bun răspuns

you can use anchor tag of HTML : < a t-attf-href = " # {line.product_template_id.e_link_full}" > Text to display</a>

Imagine profil
Abandonează
Autor

Thanks!

Related Posts Răspunsuri Vizualizări Activitate
2
iul. 23
6397
1
iun. 23
4378
1
apr. 23
5086
1
nov. 22
3799
1
oct. 21
12164