跳至内容
菜单
此问题已终结
2 回复
23827 查看

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.

相关帖文 回复 查看 活动
0
3月 15
5583
1
3月 15
4579
1
2月 25
3489
1
12月 23
3318
2
3月 15
5888