• Resolved Derek Ashauer

    (@sccr410)


    After a review is submitted, the popup stays open and the user cannot see their review on the website – it causes a sense of “did it really submit?” I know there is a success message but it isn’t sufficient for some and we are trying to make it more clear to the user it did actually work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    You have three options:

    1. Change the response text to inform the user that they should refresh the page to see the submitted review (https://demo.site-reviews.com/product/ does this).

    2. Reload the page automatically after a form has been submitted. You can do this if you edit the page the shortcode is on and use the Custom Fields metabox to add a redirect_to as the Custom Field name and the URL of the page as the value.

    3. See: https://pastebin.com/y0qgYEzR

    I found this filter to be helpful in refreshing the page after a submission:

    
    /**
     * Runs after a review has been created.
     * @return void
     */
    add_filter('site-reviews/enqueue/public/inline-script/after', function () {
    	return "GLSR.Event.on('site-reviews/form/handle', (data) => {
    		window.location.reload();
    	})";
    });
    
    • This reply was modified 2 years, 2 months ago by renburnett.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show review after submission’ is closed to new replies.