Copy link to clipboard
Copied
Hi. I am developing a Search Page with the Results displaying on the same page. When you navigate to the Search page, it opens autom
atically displaying all the records in the database. This happens before the user has typed anything in and pressed the search butto
n. How do I stop the results from displaying, before the search is done or when the page loads.
I have been through the tutorials but I cannot find the solution.
Thanks.
Copy link to clipboard
Copied
You need to add conditional logic that checks if the page was opened via a form submit. If it was, execute the query and display the results. If not, present the form for user input.
Copy link to clipboard
Copied
Hi Bregent
For some reason I can't reply on the forum.
Excuse my ignorance, but how do I add conditional logic, or learn how to.
Kind Regards
Peter