Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
11961 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
feb 16
10973
5
gen 24
14176
2
set 25
736
0
gen 21
2808
5
lug 19
5292