Support » Plugin: Gravity Forms User Restrictions » Viewing Poll Results After Submission Limit Has Been Hit?

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


    You could try something like this :

    add_filter('gform_pre_render', function( $form ) {
        $form['limitUserEntriesReachedMessage'] = do_shortcode( $form['limitUserEntriesReachedMessage'] );
        return $form;
    }, 9 );

    Note: Restriction message is displayed inside some Gravityforms markup (<div class=”gform_wrapper”>[…]</div>). Nesting an other form inside this markup could possibily cause some edge effects.

    Thanks for the quick response. I’ve tried your code and for some reason, when I load the page with that form on it, I receive an empty response error message. Here’s a screenshot:

    It appears this all has to do with the do_shortcode method. If I take it out, the function works fine. Any other thoughts?

    Here’s my code:

    add_filter('gform_pre_render_15', 'jp_limit_ip_show_results', 9, 1 );
    function jp_limit_ip_show_results( $form ) {
        $form['limitUserEntriesReachedMessage'] = do_shortcode( '[gravityform action="polls" id="15" mode="results"]' );
        return $form;

    Do you think a merge tag would work better? I’m not sure how to get the merge tag to render though.

    Plugin Author Cyril Batillat


    Well, the code I wrote yesterday worked fine on my local machine. You may have an issue elsewhere. Take a look at the logs, Jeff. Specially your PHP and Apache/Nginx ones. Be sure that your GravityForms and WordPress are up to date.

    A merge tag would be an other solution, I guess.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Viewing Poll Results After Submission Limit Has Been Hit?’ is closed to new replies.