Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Adding tool tip for fields in format pane

We wanted to add a user friendly message to an input box in the formate pane which was added to our custom visual. We did specify description along in the property but is dosen't seem to appear any where. Can we add a tool tip / friendly message for input boxes in the formate pane.

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Anonymous,

Assuming I'm reading this right, do you mean a message in the property tooltip, like this?

image.png

If so, then you indeed just need to add a description property to your object declaration. I note that you say you've done this, but I'll just include what I did for reference so that you can cross-check:

 

    ...
    "myTextProperty": {
        "displayName": "My Text Property",
        "description": "This should be a user friendly message...",
        "type": {
            "text": true
        }
    }
    ...

 

If this is how you've set it up at your end, we might need a bit more info to assist, but this is all I've ever had to do.

Regards,

Daniel


P.S. While we're on the subject, it might be handy to know that you can also use the JavaScript string escape sequences (such as \n and \t) in these properties, as well as unicode, e.g.:

image.png

 

    ...
    "myTextProperty": {
        "displayName": "My Text Property",
        "description": "This should be a user friendly message...\n\nAnd this is a new paragraph within the tooltip\n\n\t• This kind of looks like a bullet\n\nAnd now we're back to normal ",
        "type": {
            "text": true
        }
    }
    ...

 

(the forum's code formatter seems to strip out the emoji but it is in the code I pasted)

HTML won't work in here though, so if you want to get fancy, you have to work with the above.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

2 REPLIES 2
dm-p
Super User
Super User

Hi @Anonymous,

Assuming I'm reading this right, do you mean a message in the property tooltip, like this?

image.png

If so, then you indeed just need to add a description property to your object declaration. I note that you say you've done this, but I'll just include what I did for reference so that you can cross-check:

 

    ...
    "myTextProperty": {
        "displayName": "My Text Property",
        "description": "This should be a user friendly message...",
        "type": {
            "text": true
        }
    }
    ...

 

If this is how you've set it up at your end, we might need a bit more info to assist, but this is all I've ever had to do.

Regards,

Daniel


P.S. While we're on the subject, it might be handy to know that you can also use the JavaScript string escape sequences (such as \n and \t) in these properties, as well as unicode, e.g.:

image.png

 

    ...
    "myTextProperty": {
        "displayName": "My Text Property",
        "description": "This should be a user friendly message...\n\nAnd this is a new paragraph within the tooltip\n\n\t• This kind of looks like a bullet\n\nAnd now we're back to normal ",
        "type": {
            "text": true
        }
    }
    ...

 

(the forum's code formatter seems to strip out the emoji but it is in the code I pasted)

HTML won't work in here though, so if you want to get fancy, you have to work with the above.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Anonymous
Not applicable

Thank you. It worked but we are getting tooltip only on hover over the label. Can we get it when we hover over the input box ?

Or Is there a way to show the message below the input box. Similar as a label

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors