Back to view formats
View formattingSharePoint Online

Links to Search Page

This sample demonstrates displaying links to the search page. When you open the search page, it displays the search results where the query registered in the Query column of the item has been executed.

Links to Search Page formatting preview
Sample preview · View original image

Copy. Apply. Make it yours.

Get this format

1 definition

Review the requirements below, then paste this JSON into the matching formatting panel. Show me where.

Use your list's internal column names and replace any tenant-specific URLs or flow IDs. Formatting is presentation, not a way to secure data.

From the contributor

How to use this sample

Summary

This sample demonstrates displaying links to the search page. When you open the search page, it displays the search results where the query registered in the Query column of the item has been executed. Also, there are two types of links, each with a different search scope. One is for the entire tenant, and the other is for within the site.

screenshot of the sample

You can also add search keywords on the search page to further refine your search results.

screenshot of the search result

In addition, there is a favorite feature using the setValue action.

screenshot of the favorite feature

In addition to a view that shows all items, it is useful to create a view that displays only the items you have added to your favorites.

screenshot of the my favorites view

View requirements

Type Internal Name Required
Single line of text Title Yes
Single line of text Query Yes
Single line of text or Choice Category Yes
Single line of text Icon Yes
Multi-Select Person Favorites
  • Set the icon name of Fluent UI Icons in the Icon column.
  • You need to use Gallery view grouped by Category column

Sample Data

Sample

Solution Author(s)
search-page-link-tiles.json Tetsuya Kawahara

Version history

Version Date Comments
1.0 August 15, 2023 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Additional notes