Skip to Content
Menú
This question has been flagged
2 Respostes
5214 Vistes

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!

Avatar
Descartar
Best Answer

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

Avatar
Descartar
Autor

Thank you

Best Answer

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

Avatar
Descartar
Autor

Thanks!

Related Posts Respostes Vistes Activitat
2
de jul. 23
6490
1
de juny 23
4407
1
d’abr. 23
5135
1
de nov. 22
3849
1
d’oct. 21
12194