Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
11433 Widoki

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




Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lut 16
10453
5
sty 24
13573
0
sty 21
2304
5
lip 19
4788
1
maj 16
3775