Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom Topic Vaidation on error does not scroll down to input form


  • antonv
    Participant

    @antonv

    I am using below code for extra topic validation. Now if the validation fails, the page is reloaded but not scrolled down to the input form that shows that a validation error has occurred.

    Is there a fix for this?

    add_action('bbp_new_topic_pre_extras', 'my_extra_validation');
    function my_extra_validation( $reply_id ) {
       if ( $failed ) {
          bbp_add_error( 'invalid', '<strong>ERROR:</strong> Invalid input. Try again.' );       
       } 
    }
  • You must be logged in to reply to this topic.
Skip to toolbar