Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
4936 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
mar. 15
4420
1
mar. 15
4308
1
aug. 15
8995
0
jun. 15
3248
1
mar. 15
7291