Forum Discussion
Converting SharePoint Task List from Classic to Modern breaks link to open row detail.
I have a SharePoint task list that I switched from the classic to the modern view. While the format in the modern view is much cleaner, when I did this, I found that when the user clicked on a row in the list it resulted in downloading a 000 type file with a format of XXXX_(X).000. The expected behavior is that when clicking the row, a dialog window would open with further details of the row.
After reviewing possible solutions online, I created the following JSON code that added a hyperlink to one of the row fields. When clicked, it opened a new window with the details resulting in a behavior as expected.
JSON code:
{
"elmType": "a",
"txtContent": "@currentField",
"attributes": {
"target": "_blank",
"href": {
"operator": "+",
"operands": [
"https://<mydomainname>.sharepoint.com/_layouts/15/SPListForm.aspx?PageType=<enter code from your page here>&ID=",
"[$ID]"
]
}
},
"style": {
"text-decoration": "underline",
"align": "center"
}
}
This works like a charm.
I saw a similar article in this tech community that allowed me to create the solution found here. Just wanted to share the solution in case others are having similar issues.
1 Reply
thanks for your help.
That's right:
The task list is a classic list template: https://learn.microsoft.com/en-us/sharepoint/troubleshoot/lists-and-libraries/task-list-shows-000?WT.mc_id=DX-MVP-5004845
You can use the grid view from a list or create a view formatting like yours.
Best, Dave