Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6307 Представления

Hi there,

I am playing with email forms. I ve got some inputs that doesn't have to be filled in by customer so I made them hidden:

<input type="text" name="name" hidden="true" value="user_id.partner_id.name"/>
The question is how to insert field value as a form "value" (example above doesn't make a job). Thanks:)


Аватар
Отменить
Лучший ответ

Hello Piotr Cierkosz,

You need to change the attribute "value" to "t-att-value" in the input tag.
t-att-value is used for set the dynamic value in form.

Please find Example in Comment.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Аватар
Отменить

Here is the example:

<input type="text" name="name" hidden="true" t-att-value="user_id.partner_id.name"/>

Related Posts Ответы Просмотры Активность
4
авг. 15
4213
0
мар. 15
4174
1
мар. 15
12775
2
сент. 23
9827
2
мар. 21
8908