Skip to Content
Menu
This question has been flagged
1 Atsakyti
5079 Rodiniai

I want to add a custom html attribute (say - download ) to a field in the view

I tried these

<field name="attachment" filename="answer_id" download="answer_id" />

<field name="attachment" filename="answer_id" t-att-download="answer_id" />

but fails. How can achieve this. Thanks in advance

Portretas
Atmesti
Best Answer

Hi,

You can not directly add html attribute in field view.

you need to create widget and then it used in field view.

Thank you.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 15
4504
1
kov. 15
4439
1
rugp. 15
9110
0
birž. 15
3352
1
kov. 15
7408