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

Hello Everyone,

I want set default value on 1 field of website contact us form.

If anyone has idea please share, 

thanks in advance.

Best,

Prince




الصورة الرمزية
إهمال
أفضل إجابة

Prince,


You can use 'value' attribute to set the value.


If is normal HTML form can user value.

If related to some calculated value or functional than can use t-att-value


Hope this might help you.

Regards,

AniL

الصورة الرمزية
إهمال
أفضل إجابة

Try to modify the default_get function, there you can set the default value, so when you load the page it show the desired value in the field.


Kind regards,

Juanvi

الصورة الرمزية
إهمال
أفضل إجابة

Edit the template of contact us from odoo back end and set value attribute for html element

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
فبراير 16
10485
5
يناير 24
13635
0
يناير 21
2355
5
يوليو 19
4825
1
مايو 16
3811