콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5062 화면

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

아바타
취소
베스트 답변

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.

아바타
취소
관련 게시물 답글 화면 활동
1
3월 15
4495
1
3월 15
4424
1
8월 15
9099
0
6월 15
3344
1
3월 15
7400