Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
11477 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
feb 16
10483
5
ene 24
13615
0
ene 21
2343
5
jul 19
4816
1
may 16
3809