• Hi,

    I was wondering if it is possible to have the save button to simply save the predictions and not to reload the page? Another option I was thinking of is when the save button is pressed, could you be redirected to a custom URL immediately after the save has completed?

    Please could you let me know if this is possible?

    Thanks for making a great plugin and for your support!

    David Anderson

    https://wordpress.org/plugins/football-pool/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AntoineH

    (@antoineh)

    To redirect after a save, I think you would have to hook into some standard actions/filters of WP. My plugin also has a filter and action on the save of the form, but I think it comes too late.

    If you want the page to not reload, then you could rewrite the form with the available templates in the plugin to not use a post, but to use AJAX calls and then write your own form handling.

    Both approaches can be used, but require coding skills. And looking at it, it looks like quite a complex change.

    Thread Starter anderson849

    (@anderson849)

    Ok, Sounds like it could take some work, but I think I’m going to give it a go as this would be a major improvement to my site.

    If I get any success with it would you like me to show you any modifications I have made?

    Thanks.

    Plugin Author AntoineH

    (@antoineh)

    I would always encourage sharing extensions on the plugin. You never know who could benefit from it.
    That’s the whole idea why I decided to release my code in the first place.

    I prefer extensions via filters. But if it is a change in the plugin itself, others could also decide to go for it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Submit/Save button not to reload page?’ is closed to new replies.