Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago

Set default action in the JSON theme file for actionButton to "Bookmark"

Hi!

 

I would like to set the default action in the JSON theme file for actionButton ti "Bookmark".

 

Not a specific bookmark just that the Type is "Bookmark"

 


I blindly tried this to no avail:

"action": [
{
"$id": "default",
"action": true,
"type": "Bookmark"

},
{
"show": true
}
]

 

Grateful for help 🙂

2 Replies

  • Hi Anonymous  - This will not set a specific bookmark, only the Action Type to "Bookmark".
    Power BI may require manually selecting a bookmark for each button since bookmarks are user-defined.

     

    please find the attached snippet . Hope it helps.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi! Sorry rajendraongole1  this did not work.

    I need the action to be set to "Bookmark" and Action "On": 


    The name of the visual I beleive is "actionButton". But the code you sent unfortunately does not work for me. Not even if I put it in the "actionButton" code.

    No specific bookmark is needed.