• Resolved soulwasted

    (@soulwasted)


    Hi,

    I need to reload page with submissions after user edits one in modal window.
    What works is to comment that 3rd line:

    
    if(erforms()->frontend->edit_sub_status){
          if(isset($response['redirect_to'])) unset($response['redirect_to']);
          // if(isset($response['reload'])) unset($response['reload']);
          $response['msg']= __('Submission edited successfully','erforms');
    }
    

    in “includes/class-user.php”.
    But is there a “nicer” way how to achieve reloading of page?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author easyregistrationforms

    (@easyregistrationforms)

    Hello,
    As of now there is no such option available.
    We will provide a filter in our next week’s release.

    Thread Starter soulwasted

    (@soulwasted)

    ??

    • This reply was modified 6 years, 1 month ago by soulwasted.
    Plugin Author easyregistrationforms

    (@easyregistrationforms)

    Hi,

    We have added a new JS trigger which is called just after edit submission. Here it is:

    $(document).trigger(‘erf_submission_edited’, [formID,submissionID,res]);

    You can attach your custom JS function(For reloading and other operations) with the above event in your theme’s JS file.

    Thread Starter soulwasted

    (@soulwasted)

    Hi.

    I’ve returned to this.
    When I catch trigger ‘erf_submission_edited’ so this trigger is triggered immediately when modal is opened.

    I need to “catch trigger” when submission is edited and saved. So for this “saved”.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reload page after submission edit’ is closed to new replies.