Since upgrade to Confluence 8.5 LiveSearch placeholder stopped working.
Asked by Pascal Lisot:

Hi all concerning the [LiveSearch Macro](https://confluence.atlassian.com/doc/livesearch-macro-163415902.html)

*** ** * ** ***

We noticed that the placeholder text is no more displayed since we upgraded from 7.19 to 8.5

Is this a know issue?

![LiveSearchPlaceHolderStillvisibleIn7.19.png](/t5/image/serverpage/image-id/284118iB39D8415DD8EF98F/image-size/large?v=v2&px=999 "LiveSearchPlaceHolderStillvisibleIn7.19.png")  
![LiveSearchPlaceHolderNoMore visibleIn8.5.png](/t5/image/serverpage/image-id/284116i8BFBA1B0BB2C6101/image-size/large?v=v2&px=999 "LiveSearchPlaceHolderNoMore visibleIn8.5.png")

Thanks in advance for your help on this.

With kind regards,

Pascal


Answers:
author: J?rn Donneau
body: Hello, we have the exact same answer, also reproducable in 8.6.2. I raised a support issue with Atlassian.

Cheers

comments: author: Pascal Lisot
body: Hi [@J?rn Donneau](/t5/user/viewprofilepage/user-id/4437911)

We also warned Atlassian but no answer so far.  
There's no trace in the log files whatsoever.

In the mean time we used a temporary (quick and dirty) JavaScript at page level to add the missing placeholder attribute.

Keep me posted if you have some news.  
Have a nice day,

Cheers


author: Matthias Jupe
body: Hi [@Pascal Lisot](/t5/user/viewprofilepage/user-id/4978465)

Is it possible to share your preliminary (quick and dirty) JavaScript snippet?

For everyone else, this looks like the official bug issue from Atlassian:  
<https://jira.atlassian.com/browse/CONFSERVER-91576>

Greetings,  
Matthias


author: Pascal Lisot
body: Hi [@Matthias Jupe](/t5/user/viewprofilepage/user-id/5432662)

Firstly you need to**Copy the JavaScript path** from the html inspect properties of you input.

You'll get something like this:  
#main-content \> div \> div:nth-child(2) \> div \> div \> div \> form \> fieldset \> div \> input

![Step001Get_JS_Path.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/307162i75EBF64FC35EE945/image-size/large?v=v2&px=999 "Step001Get_JS_Path.PNG")

Then you need to add at page level an **html macro** where you can add your JavaScript to set the missing placeholder attribute.

\<script\>  
// added by lisotpa to bypass placeholder issue in confluence 8.5  
document.querySelector("  
#main-content \> div \> div:nth-child(2) \> div \> div \> div \> form \> fieldset \> div \> input

").setAttribute('placeholder', 'Search by keywords');  
\</script\>

Hope this will help.  
Cheers,

Pascal


author: Ekran
body: Hello, we are having the same problem with the livesearch macro. After upgrading from 7.19.12 to 8.5.x. I have gone through the atlassian-confluence.log file, but I can't find anything that indicates that anything is wrong. The live search macro is set up restricted to @self, restrict labels: none, size: large, placeholder text: "This is a test" Content type: page, additional information: "Space name"

I have tested the page/space using the Brave browser and Firefox, both fail. Operating system: Red hat Enterprise Linux 9.

comments: author: Pascal Lisot
body: Hi [@Ekran](/t5/user/viewprofilepage/user-id/2563095) ,

Any fix so far?

Thx,

Cheers


author: Bert van Dijk _TMC_nl_
body: Hi [@Pascal Lisot](/t5/user/viewprofilepage/user-id/4978465) ,

The question is hard to answer. Would it be possible to share the atlassian-confluence.log from your Confluence home-dir?

If you have an active license, you also can contact support.atlassian.com with this.

comments: author: Pascal Lisot
body: Hi Bert,

Thanks for your advice we will check our log and contact Atlassian support Team.

Cheers,

Pascal


Tags: confluence-server

macro

server