SOLVED

Unable to change Search Placeholdertext in SharePoint Online

%3CLINGO-SUB%20id%3D%22lingo-sub-2458926%22%20slang%3D%22en-US%22%3EUnable%20to%20change%20Search%20Placeholdertext%20in%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2458926%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Community%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20change%20the%20default%20text%20%22Search%20in%20Sharepoint%22%20to%20a%20different%20text%20in%20SP%20Online%20Search%20box.%20I'm%20using%20PnP%20script%20to%20perform%20the%20task%20but%20the%20command%20doesn't%20work%20in%20my%20tenant.%20Any%20idea%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%26nbsp%3BSet-PnPSearchSettings%20-SearchBoxPlaceholderText%20%22Search%20in%20Portal%22%3C%2FP%3E%3CP%3EError%3A%26nbsp%3BSet-PnPSearchSettings%20%3A%20A%20parameter%20cannot%20be%20found%20that%20matches%20parameter%20name%20'SearchBoxPlaceholderText'.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20advice!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2458926%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2460532%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20change%20Search%20Placeholdertext%20in%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2460532%22%20slang%3D%22en-US%22%3EPer%20the%20documentation%20of%20the%20cmdlet%2C%20the%20parameter%20is%20there%20but%20it's%20not%20properly%20document%20so%20I%20suspect%20that%20it%20might%20be%20not%20operational%20and%20that's%20the%20reason%20you%20are%20having%20that%20error%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello Community,

I'm trying to change the default text "Search in Sharepoint" to a different text in SP Online Search box. I'm using PnP script to perform the task but the command doesn't work in my tenant. Any idea?

 

Example: Set-PnPSearchSettings -SearchBoxPlaceholderText "Search in Portal"

Error: Set-PnPSearchSettings : A parameter cannot be found that matches parameter name 'SearchBoxPlaceholderText'.

 

Please advice!

5 Replies
best response confirmed by bgrede (Occasional Contributor)
Solution
Per the documentation of the cmdlet, the parameter is there but it's not properly document so I suspect that it might be not operational and that's the reason you are having that error

Hi @Juan Carlos González Martín , Probably that might be the reason. I tried other parameters for SPSearchSettings which are working fine. Hope it's operational soon. 

@bgrede I can use  Set-PnPSearchSettings -SearchBoxPlaceholderText "Search in Portal" cmdlet without any problem.

 

Also, it is working as expected, see output below:

ganeshsanap_0-1624000271482.png

Solution: I think you are using an old version of PnP PowerShell. Update PnP PowerShell modules as given in below documentations & then try above command:

  1. Installing PnP PowerShell 

You can find the detailed steps at: SharePoint Online: How to change the placeholder text in the search box


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Yup. You're right. I was running a legacy version of PnP Powershell. I was able to execute the command after updating. Thank you!

@bgrede Great, glad it worked for you. Please Mark as Best Response on my above post so that it will help others in future to find the correct answer easily. Thank you!