Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8990 มุมมอง

Hello Community;

Need Your help to know how to set an option as default value in a select in a qweb template.

I have tried this but it did not work:

option t-att-value="1" t-att-selected="1"

option t-att-value="2" 

option t-att-value="3"

But it is not working.

Need your help please.

Thanks a lot in advance.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Rihenne,

Please try this one..

<option value="your_value" selected="true">Your String</options>

Hope this will help......

Regards

อวตาร
ละทิ้ง
ผู้เขียน

It is not working !!!!!

Sorry for the trouble, Answer updated

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ย. 23
21237
1
มี.ค. 21
5052
2
ต.ค. 20
13119
0
พ.ค. 17
2581
0
พ.ค. 22
2361