Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
11513 Vizualizări

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




Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
feb. 16
10505
5
ian. 24
13681
0
ian. 21
2389
5
iul. 19
4864
1
mai 16
3841