跳至內容
選單
此問題已被標幟
3 回覆
11468 瀏覽次數

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
2月 16
10475
5
1月 24
13603
0
1月 21
2327
5
7月 19
4810
1
5月 16
3796