Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
11473 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
úno 16
10480
5
led 24
13609
0
led 21
2333
5
čvc 19
4812
1
kvě 16
3807