Title: Next &amp; Previous doesnt work
Last modified: August 22, 2016

---

# Next & Previous doesnt work

 *  Resolved [Slllobodan](https://wordpress.org/support/users/slllobodan/)
 * (@slllobodan)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/next-previous-doesnt-work/)
 * Hi all, i have some issues with this plugin,
 * Plugin works ok for the most part, there is 3 tabs on front page (survey,feedback,
   personal information) which are displayed and working correctly, but previous
   and next buttons are not switching tabs as they are suppose to.
 * I tried disabling all the plugins, changing theme and even different wp install
   but no luck.
 * I snoop around the plugin files and it seams its the .js issue, to be more exact
   i think its the form.js file, this is the code:
 *     ```
       //assign the navigation and submit button
       //alert($('#wp_feedback .navigation .prev_button').length);
       var $prev = $('#wp_feedback .wp_feedback_navigation .prev_button').button({
           disabled : true
       });
   
       var $next = $('#wp_feedback .wp_feedback_navigation .next_button').button({
           disabled : ($tab_length == 1 ? true : false)
       });
   
       var $submit = $('#wp_feedback .wp_feedback_navigation .sub_button').button({
           disabled : ($tab_length == 1 ? false : true)
       });
   
       $prev.click(function(e) {
           e.preventDefault();
           $tab_selected = $tabs.tabs('option', 'selected');
   
           if(0 != $tab_selected && $($('#wp_feedback_tabs li').eq($tab_selected).find('a').attr('href')).validationEngine('validate')) {
               $tabs.tabs('option', 'disabled', []);
               $tabs.tabs('option', 'selected', $tab_selected - 1);
               $next.button('option', 'disabled', false);
   
               if($tab_selected - 1 == 0) {
                   $prev.button('option', 'disabled', true);
               }
               $submit.button('option', 'disabled', true);
               $('html,body').animate({scrollTop:$('#wp_feedback').offset().top}, 200);
           }
       });
   
       $next.click(function(e) {
           e.preventDefault();
           $tab_selected = $tabs.tabs('option', 'selected');
   
           if($tab_length - 1 != $tab_selected && $($('#wp_feedback_tabs li').eq($tab_selected).find('a').attr('href')).validationEngine('validate')) {
               $tabs.tabs('option', 'disabled', []);
               $tabs.tabs('option', 'selected', $tab_selected + 1);
               $prev.button('option', 'disabled', false);
   
               if($tab_selected + 1 == $tab_length - 1) {
                   $next.button('option', 'disabled', true);
                   $submit.button('option', 'disabled', false);
               }
               $('html,body').animate({scrollTop:$('#wp_feedback').offset().top}, 200);
           }
       });
       ```
   
 * I could be wrong but since this plugin wasn’t updated for 2 years and is officially
   compatible with 3.5.2 WP i figured this must be the problem.
 * [https://wordpress.org/plugins/wp-feedback-survey-manager/](https://wordpress.org/plugins/wp-feedback-survey-manager/)

The topic ‘Next & Previous doesnt work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-feedback-survey-manager_f3a19f.
   svg)
 * [WP Feedback & Survey Manager](https://wordpress.org/plugins/wp-feedback-survey-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-feedback-survey-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-feedback-survey-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-feedback-survey-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-feedback-survey-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-feedback-survey-manager/reviews/)

## Tags

 * [buttons](https://wordpress.org/support/topic-tag/buttons/)
 * [next](https://wordpress.org/support/topic-tag/next/)
 * [previous](https://wordpress.org/support/topic-tag/previous/)
 * [work](https://wordpress.org/support/topic-tag/work/)

 * 0 replies
 * 1 participant
 * Last reply from: [Slllobodan](https://wordpress.org/support/users/slllobodan/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/next-previous-doesnt-work/)
 * Status: resolved