Asked by:
Search without created by and modified by column in a list in Sharepoint

-
Hi all,
I am new to sharepoint, and would appreciate it a lot if someone can share some light on my problem below please.
I have a list in sharepoint consisting columns like project ID, primary name, secondary name, etc. Of course, it comes with the default columns like created by and modified by as well, which are of the type "name".
If I search for a particular name in the "find an item" search box, all the rows will come up if the particular name is in primary name, or secondary name, or created by, or modified by column. But I would only like the search to be based on the primary name or the secondary name, excluding created by or modified by.
Is there anyway we can modify the search property or the column properties to achieve this please? Thanks very much for your help.
Jack
Question
All replies
-
You can quickly filter by using the list's column headings.
You can add your column as a Site Column and then let your search / server administrator configure it as a conveniently named Search Managed Column. You could then search using something like "PrimaryName:Susan".
https://technet.microsoft.com/en-us/library/dn794220.aspx
Mike Smith TechTrainingNotes.blogspot.com
Books: SharePoint 2007 2010 Customization for the Site Owner, SharePoint 2010 Security for the Site Owner- Edited by Mike Smith MCT MVPMVP Sunday, February 11, 2018 1:01 AM
- Proposed as answer by Sara FanMicrosoft contingent staff, Moderator Monday, February 12, 2018 6:35 AM
-
Hi Jack2018wb,
If the reply is helpful to you, you could mark the reply as answer. Thanks for your understanding.
Best regards,
Sara Fan
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams. -
Hi Mike,
Thanks a lot for the reply.
Yes, I can filter on the columns headings for any particular name. However, what I would like to archive is that all rows having that particular name in the column "primary name" and "second name" would come up together. If I do the filter it only works for one column, not two columns together.
The idea here is that I am trying to make an dynamic name field, so the users can search for all the projects they are on for them as both the primary person or the secondary person.
Thanks a lot.
Jack
-
Hi Jack,
To achieve your requirement, you could filter the list view dynamically by adding custom code.
For more detailed information, refer to the articles below.
SharePoint 2013 Custom AJAX filters on List View Web Parts.
https://roykim.ca/2014/05/25/sharepoint-2013-custom-ajax-filters-on-list-view-web-parts/
Dynamically Filtering SharePoint List Views using Javascript.
https://platinumdogs.me/2014/07/15/dynamically-filtering-sharepoint-list-views-using-javascript/
Filter a list dynamically.
https://christopherclementen.wordpress.com/2012/04/02/filter-a-list-dynamically/
Best regards,
Sara Fan
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.- Proposed as answer by Wendy DZMicrosoft contingent staff, Moderator Thursday, February 15, 2018 8:36 AM
-
Hi Jack,
If the reply is helpful to you, you could mark the reply as answer. Thanks for your understanding.
Best regards,
Sara Fan
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams. -
Hi Jack,
I am checking to see how things are going there on this issue. Please let us know if you would like further assistance.
If the issue was resolved, you can mark the helpful post as answer to help other community members find the helpful information quickly.
Best regards,
Sara Fan
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.