Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
23517 Vues

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.

Avatar
Ignorer
Meilleure réponse

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.

Avatar
Ignorer
Auteur

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.

Auteur

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.

Meilleure réponse

Hi, 

how set dynamically the tooltip message?

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

 

thanks!

Avatar
Ignorer

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

Thanks.

Publications associées Réponses Vues Activité
0
mars 15
5281
1
mars 15
4272
1
févr. 25
3227
1
déc. 23
3040
2
mars 15
5468