Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4898 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
mar. 15
4400
1
mar. 15
4288
1
avg. 15
8985
0
jun. 15
3239
1
mar. 15
7267