Forum Discussion
Custom field rendering in modern list views
Is this the right room for the old Calculated column HTML render trick?
It was lovely being able to dynamically render a JS button or an HTML link in a SharePoint column and would dearly love this to be made available again please? It was so easy and provided many solutions.
- LincolnDeMarisJun 27, 2017
Microsoft
Yes - we're working on a new, improved way to accomplish those same tricks that isn't, at the same time, a way for site contributors to put arbitrary script on list view pages. We will announce more in the next month or two.
- DeletedJun 28, 2017
So, I'm sure someone else has already spotted this, but if I create a new page with the modern UI and add the Lists (preview) webpart and select my list with the calculated column in it, my button renders!!! If inspect the element the URL is correct, however if I click the button itself it takes me to the item form rather than the URL defined in the HTML. Bizarre and inconsistent behaviour.
Anyone else seeing this and even better, explain this???
- LincolnDeMarisJun 30, 2017
Microsoft
You're right. This will be fixed in the service in the next two weeks.
- Vivek JainJun 27, 2017Iron Contributor
Hello LincolnDeMaris
Thanks for guidance. Are there plans for SPD 2013 to have the conditional formatting options like the one available in SPD 2010 ?In SharePoint Online, for conditional formatting we tried putting HTML code in the column's "formula" field and it does work. From the overall stability point, is this "work around" advisable or are there other preferred techniques I should read about first. At our shop (being small setup) we follow the policy of 'no customization' to out-of-box features, hence wanted to check what would be best for us in the meanwhile SPD 2013 has all the features.
Appreciate the guidance.
- LincolnDeMarisJun 27, 2017
Microsoft
We do not have any plans to add functionality to SharePoint Designer. We're working on some in-browser stuff for specifying field formatting for modern list views. Scenarios that are top of mind for us:
- Creating "action buttons" that point to a parameterized URL based on metadata on the current item
- Conditional formatting
- Severity coding - highlighting items that need attention
- Lightweight data visualizations, like data bars and trending indications
Anything else come to mind?
For the time being, if you want to accomplish this stuff, you'll need to look at JSLink and CustomAction (if you're in classic) or the SP Framework Extension stuff that's in Developer Preview (if you're in modern)