Pre fill the search field




I would like to be able to search for a file in ownCloud web app based on the text input on another software. The idea would be with some JS in my other software get the text input value, and insert it in a link which would be like:, 0101 being my text input value. I tried to make a manual search on owncloud web app, but when searching in the search bar, there is no explicit URL like the one I would like.

My other solution was to populate the searchbox field in ownCloud web app with JS:
document.getElementById("searchbox").value = "test"; -> it works

And then submit the form:
document.querySelector("form").submit(); -> it brings me on this page: with a HTTP error 405

Here is how the html looks like:

Do you guys know any way to achieve what I want ?

Thanks a lot,