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

Good morning, My question, please, is how can we put help tooltip message on fields rather than labels (which is by default) so that when the user put the cursor n the textfield the tooltip message appears.

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

Hello, in .py side need to put field attribut "help" and your description. For Example

  • 'field_name': fields.char('Field Name', help="here is your tooltip message")

Hope this will help you.

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

This help message will appear on the label 'Field Name', but I want the message appearing on the textfield itself

Then use placeholder="your message" in xml. It will display message in textfield and when you click on that field it will disapper if you write something and vice-versa.

Автор

thank you for this proposition but, what I really want is to have the help message appearing on the field rather than on the label when the user simply move the cursor on the field.

Лучший ответ

Hi, 

how set dynamically the tooltip message?

by example:  help = "Inventory on hand" + some python code

 

thanks!

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

Hi, have you found any solution for this? I also want a dynamic tooltip message.

Thanks.

Related Posts Ответы Просмотры Активность
0
мар. 15
5508
1
мар. 15
4527
1
февр. 25
3448
1
дек. 23
3265
2
мар. 15
5811