youtube image
From YouTube: String length detection trick to extend your column and view formatting options

Description

This PnP community demo is taken from the bi-weekly SharePoint Developer Community - General Development Special Interest Group (SIG) call recorded on March 5, 2020.

Presently the Length operator does not return the number of characters of text in a selected list field. In this 10-minute demo, Chris Kent shares how to configure (trick) the IndexOf operator to return the length of a string in the field. Special thanks to Alberto Suárez Caballero http://albertosuarezcaballero.es/ for the “trick.”

Given this new capability, Chris suggests we can now easily add links to keywords in a list-based FAQ. Essentially, search text strings for keywords, for each keyword found, add link to additional information. Watch this demo and then get the “FAQ format” sample in the GitHub PnP sp-dev-list-formatting samples library.

Demo Presenter: Chris Kent (DMI) | @theChrisKent

Supporting materials:
• "FAQ format" sample | https://github.com/SharePoint/sp-dev-list-formatting/tree/master/view-samples/ (to be published soon)
• "Custom header format" sample | https://github.com/SharePoint/sp-dev-list-formatting/tree/master/view-samples/custom-header-format
• Custom header demo | Chris Kent (DMI) | https://www.youtube.com/watch?v=4uQyYQp8G2I

All SharePoint PnP Developer Community demos: https://www.youtube.com/playlist?list=PLR9nK3mnD-OWSbg0o9a7mx_E7s2u7h_o2

Learn more about the SharePoint developer community at: http://aka.ms/sppnp.