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

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 16
10475
5
ม.ค. 24
13603
0
ม.ค. 21
2327
How to add Fields in Form แก้ไขแล้ว
5
ก.ค. 19
4810
1
พ.ค. 16
3797