تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
23502 أدوات العرض

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
مارس 15
5267
1
مارس 15
4262
1
فبراير 25
3219
1
ديسمبر 23
3033
2
مارس 15
5448