İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
11472 Görünümler

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




Avatar
Vazgeç
En İyi Yanı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

Avatar
Vazgeç
En İyi Yanı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

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Şub 16
10480
5
Oca 24
13607
0
Oca 21
2332
5
Tem 19
4811
1
May 16
3802