Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
11485 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Melhor resposta

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
Cancelar
Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
fev. 16
10485
5
jan. 24
13635
0
jan. 21
2355
5
jul. 19
4825
1
mai. 16
3811