reload action changes pagintor buttons URLs

How to prevent paginator buttons from generating incorrect URLs after a page reload.

Overview

The issue occurs when using a dropdown trigger to reload a page, which causes the paginator buttons to append unwanted query parameters to the URL.
Change the dropdown listener to submit the form and use the Page Reload action in the Submit event to refresh the page without altering the paginator URLs.

Answered
ChronoForms v8
bc bcraigie 08 Jun, 2025

Hi Max,

I have a page with drop-downs to modify a Where clause in a read-data with a limit and paginator and the results display in a Table.

I have a trigger set on the drop-downs that when the drop-down changes, the page reloads.  This works and the new data is placed in the Table

However, the paginator buttons change the URL incorrectly and add chronoform=form-alias&output=ajax to the URL and then Joomla does not load the Menu and other modules.

An example link on a paginator button is : https://my-site.org/my-menu-item?chronoform=my-page-alias&output=ajax&start_at=20

If I remove chronoform=form-alias&output=ajax from the URL in the browser, the page displays correctly.

Is there a way to fix it so that the paginator buttons do not get chronoform=form-alias&output=ajax added to them?

I wonder if this is a bug?

Max_admin Max_admin 08 Jun, 2025

Hi bcraigie

Change the dropdown listener to "submit" the form, and in the Submit event do a "Page Reload", this should refresh the page with the new results and should not cause this issue

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
bc bcraigie 09 Jun, 2025

Hi Max,

I don't want to submit the form, because when I do, the drop-downs disappear.  The user would then have to press a back button to change the filter criteria, making it tedious to use the form.

To use submit, I would have to duplicate the drop-downs and the results page on the submit page too.  What happens then when the user submits on the submit page?  Will it then go to page 2, or can I make it submit back to the same submit page?

If I could just fix the problem with the pagination buttons, it would be perfect. :-)

Max_admin Max_admin 09 Jun, 2025
Answer
1 Likes

The dropdowns should not disappear when you submit the form with the "Reload Page" action in the "Submit" event, just try it in a test form, add a text field and a submit button in the Load event, and "Reload Page" in "Submit" then submit once, what happens ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
bc bcraigie 09 Jun, 2025

Aha! I had not understood you at first. 😃

Yes, that fixes it.  Perfect!  Many thanks.

Max_admin Max_admin 09 Jun, 2025

Great, no problem! 😊

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply