The search form is a submission form which passes parameters to a results list. Both are embedded in the same web page.
When the web page loads I'd like the search form to auto-submit based on some default values, so that a list of results is generated. Otherwise it just shows "No records found" until the user submits the form.
I see Caspio provided an auto-submit javascript solution below. However, since the submission form reloads after each search, the below creates an infinite loop.
Does anyone have a simple solution so that the search form auto-submits ONLY when the user first visits the web page?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Ed727
Hello - I have a search form and a results list on the same page, per this approach: https://howto.caspio.com/tech-tips-and-articles/tech-parameters/add-a-search-interface-to-results-sets-page/
The search form is a submission form which passes parameters to a results list. Both are embedded in the same web page.
When the web page loads I'd like the search form to auto-submit based on some default values, so that a list of results is generated. Otherwise it just shows "No records found" until the user submits the form.
I see Caspio provided an auto-submit javascript solution below. However, since the submission form reloads after each search, the below creates an infinite loop.
Does anyone have a simple solution so that the search form auto-submits ONLY when the user first visits the web page?
Thank you.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.