Skip to Content
Menu
This question has been flagged
2 Replies
5170 Zobrazenia

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
Zrušiť
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
Zrušiť
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
Zrušiť
Autor

Thanks!

Related Posts Replies Zobrazenia Aktivita
2
júl 23
6367
1
jún 23
4361
1
apr 23
5072
1
nov 22
3781
1
okt 21
12151