Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5027 มุมมอง

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!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

Thank you

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

Thanks!

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 23
6001
1
มิ.ย. 23
4086
1
เม.ย. 23
4866
1
พ.ย. 22
3575
1
ต.ค. 21
11948