Skip to Content
Menu
This question has been flagged
1 Odpoveď
5074 Zobrazenia

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

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
mar 15
4500
1
mar 15
4434
1
aug 15
9105
0
jún 15
3348
1
mar 15
7406