How to eliminate DispForm.aspx in search results of the Portal Search
Applies To: SharePoint Online and SharePoint On-Premises
Issue: Portal search results shown as DispForm.aspx in the results. See sample screenshot below:
Generally, in SharePoint search results, the value present in the Title field will be shown as search results in our Crow Canyon Employee Portal Search Page. If the value is not present in the Title field of the list then the results will be displayed as DispForm.aspx
There are two ways to eliminate this error.
- Set the Title field to mandatory in the Portal Page, go to Portal Settings –> Portal Pages –> Edit the New Form page –> Edit the tab/section and make the column as mandatory (see sample screenshot below)
- If the Title field is not used in the portal forms/ backend forms, then we need to configure a workflow on Item Added event for the list to update the Title column value with some other column value. We are taking “Requester” (sample column) as an example belowFor SharePoint OnPremises, please go to Site Actions –> Crow Canyon Workflow Manager –> Configure a new workflow as shown below
(Note: If there is any existing workflow on Item Added event and there is an action that updates the item already, then modify the column mappings of that action to set the Title value. This helps avoid multiple updates on the item)Create an Update Item action as shown belowFor SharePoint Online, please refer https://www.crowcanyon.info/nitro/appmanual_v2/workflow-manager.html for workflow manager manual. Configure a workflow similar to above screenshots.
With this workflow configuration, the title value will be filled with the desired value and teh “DispForm.aspx” will not appear in search results.
Note: We need to update the existing items manually where the title field is empty