تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
8996 أدوات العرض

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
سبتمبر 23
21263
1
مارس 21
5063
2
أكتوبر 20
13141
0
مايو 17
2583
0
مايو 22
2366