• Resolved Theo Pape

    (@theo38)


    Hi there,

    class=”no-ajax” on [site_reviews_form] appears to no longer work – the review is submitted via AJAX…

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

    (@geminilabs)

    The .no-ajax class was always an undocumented hack. Unfortunately, it’s no longer supported with the recent additions of the additional captcha options.

    Instead, you can use the Custom Fields metabox on your page and add a redirect_to field using the URL of the page as the value. This will reload the page after the review is submitted.

    If you are using a page builder such as Elementor, simply edit the page in Gutenberg to use the Custom Field metabox, then edit the page again as usual in Elementor.

    The upcoming Site Reviews v6.0 will also allow you to load the submitted review on the page without a page refresh using the “reviews_id” option on the block or shortcode.

    Thread Starter Theo Pape

    (@theo38)

    When’s the release date?

    Plugin Author Gemini Labs

    (@geminilabs)

    With Site Reviews 6.0, you will be able to use the reviews_id option on the [site_reviews_form] shortcode and this will be included in the shortcode documentation.

    Thread Starter Theo Pape

    (@theo38)

    Sorry edited that as realised you had addressed. When do you plan to release 6.0?

    Plugin Author Gemini Labs

    (@geminilabs)

    This next week ????.

    Thread Starter Theo Pape

    (@theo38)

    OK great, thank you. Will use this method once released then – that’s a better way.

    Thread Starter Theo Pape

    (@theo38)

    Hi,

    That doesn’t really work, because we end up with a form that says ‘Your review has been submitted!’. How to hide the reviews form if have hit the limit (in this case one review)?

    Plugin Author Gemini Labs

    (@geminilabs)

    If you need to hide the review form after a review is successfully submitted, you can do something like this with javascript:

    GLSR.Event.on('site-reviews/form/handle', (response, form) => {
        if (false !== response.errors) return;
        // hide the form
        // display the response.message on the page
    });
    
    Thread Starter Theo Pape

    (@theo38)

    OK thank you. Perhaps consider making it default behavior to hide the from after submission if have hit the limit, though?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘class=”no-ajax” no longer working’ is closed to new replies.