• Resolved antonv

    (@antonv)


    I have a long form with many fields. I am making the page number available to the uploader so that he can, if he wishes, to incorporate the URL example.com/?p=1234 into the document before he uploads it.

    I have a save button in the third row. but the post saved message is displayed well below the displayed page boarder.

    Can you suggest a way how a page refresh can be triggered, so that the page number can then be preloaded into the form, and the user gets feedback for his action.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    Can you suggest a way how a page refresh can be triggered, so that the page number can then be preloaded into the form,

    you want to refresh the page when form is saved/submitted?

    You can do so with something similar to faq #1, but reload the page instead of redirect. **Note**, the event wpcf7mailsent will not be fired on a save button submission (I think), in which case you will be to use the wpcf7submit event instead.

    Thread Starter antonv

    (@antonv)

    The suggested method using wpcf7submit failed, did not trigger a page reload. However, after hard coding an element id into the save button I added following script at the end of the post:

    document.getElementById("get-ref").onclick = function() {setTimeout(function(){ location.reload()}, 500);};

    and that works well. The setTimeout is important without it the other scripts to process the form are abandoned.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    ok, I will need to test this on my server.

    Btw, @antonv, I have fixed the issue of repetitive fields (tables and tabs) not being pre-filled in draft forms. v5.5 pre-release is available on GitHub if you want to test it. you will also need to upgrade the smart grid plugin to the pre-release v4.15 in order to get it to work.

    Thread Starter antonv

    (@antonv)

    @aurovrata I had problems with V5.5 and v4.15 pre-releases, commented on GitHub.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    sooper! Much appreciated. Am planning to fix these today.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I fixed the prefill on the mapped taxonomies as well as teh dynamic list in v5.5 rc2

    You’ll need the updated v4.5rc2 of this plugin too.

    Thread Starter antonv

    (@antonv)

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Good bookkeeping! ?? I realised I commented in the wrong thread ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to trigger a page refreah after save’ is closed to new replies.