Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
5160 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

Thank you

Jawaban Terbai

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

Avatar
Buang
Penulis

Thanks!

Post Terkait Replies Tampilan Aktivitas
2
Jul 23
6361
1
Jun 23
4358
1
Apr 23
5072
1
Nov 22
3779
1
Okt 21
12143