Common OK, Cancel button for SharePoint Classic Search Refiners

Varghese, Ajith (Cognizant) 0 Reputation points
2024-08-06T10:45:11.43+00:00

We are having classic SharePoint search experience, wherein we are having Apply,Clear button for each individual search refiners by default. Instead, can we have a single OK, Cancel button at the bottom of all the Refiners, which will refine the search result in one go?

Attached screenshot for the default Apply,Clear button in Search Refiners.

Thank you.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,623 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 34,821 Reputation points Microsoft Vendor
    2024-08-07T07:18:58.3833333+00:00

    Hi @Varghese, Ajith (Cognizant),

    You could refer to following script to custom your page

    <html>
      <head>
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    </head>
    <body>
      <script>
       $('table.ms-formtable').before("<a href='yoururl' style='padding:10px;float:right;background-color:red;color:#fff;border-radius:5px;'>Cancel</a>")
      </script>
    </body>
    </html>
    
    
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.