Forum Discussion
Show/Hide Textbox based on button
- 1 year ago
Bookmark 1: Text box is hidden.
Bookmark 2: Text box is visible.
➤ Bookmark 1 (Textbox Hidden)
Hide the textbox (NoteTextBox):
Click the textbox → press eye icon in the Selection pane to hide it.
Or go to View → Selection Pane, and hide it from there.
Go to View → Bookmarks Pane.
Click Add → Rename it to HideNote.
Click the … next to the bookmark → Check only:
Data: OFF
Display: ON ✅
Current Page: ON ✅
All Visuals: ON ✅
➤ Bookmark 2 (Textbox Visible)
Show the textbox by clicking the eye icon again in the Selection Pane.
In the Bookmarks Pane:
Click Add → Rename it to ShowNote.
Same settings as above: Only Display, Current Page, and All Visuals checked.
Step 4: Add Bookmark Actions to the Info Button
Since a Power BI button can only be assigned one action at a time, we will use a workaround with two overlapping buttons.
➤ Create Two Info Buttons
Duplicate the InfoButton. Now you have:
InfoButton_Show → will show the textbox
InfoButton_Hide → will hide the textbox
Assign actions:
InfoButton_Show → set Action = Bookmark → ShowNote
InfoButton_Hide → set Action = Bookmark → HideNote
➤ Set Visibility of Buttons Using Bookmarks
In HideNote:
Show InfoButton_Show
Hide InfoButton_Hide
Hide NoteTextBox
In ShowNote:
Show InfoButton_Hide
Hide InfoButton_Show
Show NoteTextBox
This creates a toggle effect: clicking InfoButton_Show reveals the text and switches to InfoButton_Hide, and clicking that hides it again.
Reference:
Use the name and content you desire based on the requirement.
If resolved, Mark as Solution to guide others!
Bookmarks can be a nightmare to maintain so instead I'd use a dummy table containing a single row blank column and add it to a tile slicer. The slicer uses a page as a tooltip. Make it so the slicer is competely transparent and there's only one cell (1x1 grid).
Please see the attached pbix.