You want to "auto update a View result" after 5 seconds.
You mean that the View should refresh after 5 seconds?
That doesn't sound the same as auto-paginating after 5 seconds, because that would move from page one of the query results to page two of the query results after 5 seconds (even if you are showing only one result at a time).
But you want page one to refresh after 5 seconds, is that right?
I want to clarify what you aim to do before suggesting a solution.
I have made a support page that a user can ask a question with a custom type called question and some text fields (name, question e.t.c)
I have created a view that presents all these questions and gets a parameter from the URL that reads the department of the question and display them a simple unsorted list
What i need is to create a page the will display that view and it will automatically updated to present the latest question in the top each 5 seconds. so the tech department that is active at the moment can see the question immediately when posted and respond as soon a possible.
Hello there! If you don't mind, I'll continue with you on this ticket.
Well, you want to refresh the page each 5s, and not paginate. That's not available out of the box, but it can be done with a simple workaround.
1. Add a search part to the view, that has a submit button.
2. Make this search part hidden using CSS.
3. Add a custom Javascript code to the view that will trigger a submit button after 5s.
Depending on how you are building the view(using the legacy or the blocks editor), the implementation may differ. Let me know what editor you are using and I'll give more details on how to implement it.
Or allow me temporary access to your website, let me know where the view is visible, and I'll give you the exact solution. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **