Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
11461 Lượt xem

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




Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 16
10473
5
thg 1 24
13599
0
thg 1 21
2323
5
thg 7 19
4810
1
thg 5 16
3792